]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/DistWorkspaceEditor.java
Fix file download for rap. Add various links in the bundle detail editor.
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / editors / DistWorkspaceEditor.java
index 98e84f4098b52f8b45f87c7c43a8c1e83d8668c7..0a34a62da0fdeda63d5690b48b9d9a72b75d5b8f 100644 (file)
@@ -39,8 +39,7 @@ import org.eclipse.ui.forms.editor.FormEditor;
 public class DistWorkspaceEditor extends FormEditor implements SlcNames {
        // private final static Log log =
        // LogFactory.getLog(DistributionEditor.class);
-       public final static String ID = DistPlugin.ID
-                       + ".distWorkspaceEditor";
+       public final static String ID = DistPlugin.ID + ".distWorkspaceEditor";
 
        /* DEPENDENCY INJECTION */
        private RepositoryFactory repositoryFactory;
@@ -65,7 +64,7 @@ public class DistWorkspaceEditor extends FormEditor implements SlcNames {
                                        && localSession.nodeExists(editorInput.getRepoNodePath()))
                                repoNode = localSession.getNode(editorInput.getRepoNodePath());
 
-                       businessSession = RepoUtils.getCorrespondingSession(
+                       businessSession = RepoUtils.getRemoteSession(
                                        repositoryFactory, keyring, repoNode, editorInput.getUri(),
                                        editorInput.getWorkspaceName());
                } catch (RepositoryException e) {
@@ -79,9 +78,10 @@ public class DistWorkspaceEditor extends FormEditor implements SlcNames {
        @Override
        protected void addPages() {
                try {
-                       addPage(new DistWkspSearchPage(this, "Overview",
+                       addPage(new DistWkspSearchPage(this, "Details ", businessSession));
+                       addPage(new DistWkspBrowserPage(this, "Maven ", businessSession));
+                       addPage(new WkspCategoryBaseListPage(this, "Groups ",
                                        businessSession));
-                       addPage(new DistWkspBrowserPage(this, "Browser", businessSession));
                } catch (PartInitException e) {
                        throw new ArgeoException("Cannot add distribution editor pages", e);
                }
@@ -111,6 +111,10 @@ public class DistWorkspaceEditor extends FormEditor implements SlcNames {
                return repoNode;
        }
 
+       protected Session getSession() {
+               return businessSession;
+       }
+
        /* DEPENDENCY INJECTION */
        public void setRepositoryFactory(RepositoryFactory repositoryFactory) {
                this.repositoryFactory = repositoryFactory;