]> 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/ArtifactsBrowserPage.java
Work in progress - work on modular distributions.
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / editors / ArtifactsBrowserPage.java
index 48afaec6ca8cf3d34ad63337a324e220b60beadf..67e0abbe8b903cc013c89f980c0ef1b0b647ada8 100644 (file)
@@ -58,15 +58,16 @@ import org.eclipse.ui.forms.editor.FormPage;
 import org.eclipse.ui.forms.widgets.ScrolledForm;
 
 /**
- * Exposes the various group id of a distribution as a tree.
+ * Expose Maven artifacts of a given workspace as a tree. Artifacts are grouped
+ * by Maven group.
  */
 public class ArtifactsBrowserPage extends FormPage implements DistConstants,
                RepoConstants {
-
-       final static String PAGE_ID = "artifactsBrowserPage";
        // private final static Log log = LogFactory
        // .getLog(ArtifactsBrowserPage.class);
 
+       final static String PAGE_ID = "artifactsBrowserPage";
+
        // Business object
        private Session session;
 
@@ -83,8 +84,6 @@ public class ArtifactsBrowserPage extends FormPage implements DistConstants,
                try {
                        ScrolledForm form = managedForm.getForm();
                        Composite parent = form.getBody();
-                       // Enable the different parts to fill the whole page when the tab is
-                       // maximized
                        parent.setLayout(new FillLayout());
                        createExportPackageSection(parent);
                        getEditor().getSite().setSelectionProvider(artifactTreeViewer);
@@ -150,7 +149,7 @@ public class ArtifactsBrowserPage extends FormPage implements DistConstants,
                                try {
 
                                        if (node.isNodeType(SlcTypes.SLC_GROUP_BASE))
-                                               return DistImages.IMG_WKSP;
+                                               return DistImages.IMG_GROUP_BASE;
                                        else if (node.isNodeType(SlcTypes.SLC_ARTIFACT_BASE))
                                                return DistImages.IMG_ARTIFACT_BASE;
                                        else if (node