]> 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/DistributionEditor.java
Add distribution browser editor page
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / editors / DistributionEditor.java
index 44825043782efc25b3ed5f5fffb8d1918ce67a8d..35eb045bc0de6c2fd75e4c2fcd696e7600384e10 100644 (file)
@@ -19,6 +19,7 @@ import javax.jcr.RepositoryException;
 import javax.jcr.Session;
 
 import org.argeo.ArgeoException;
+import org.argeo.jcr.JcrUtils;
 import org.argeo.slc.client.ui.dist.DistPlugin;
 import org.argeo.slc.jcr.SlcNames;
 import org.eclipse.core.runtime.IProgressMonitor;
@@ -55,6 +56,7 @@ public class DistributionEditor extends FormEditor implements SlcNames {
        protected void addPages() {
                try {
                        addPage(new DistributionOverviewPage(this, "Overview", session));
+                       addPage(new ArtifactsBrowserPage(this, "Browser", session));
                } catch (PartInitException e) {
                        throw new ArgeoException("Cannot add distribution editor pages", e);
                }
@@ -66,8 +68,7 @@ public class DistributionEditor extends FormEditor implements SlcNames {
 
        @Override
        public void dispose() {
-               if (session != null)
-                       session.logout();
+               JcrUtils.logoutQuietly(session);
                super.dispose();
        }