]> 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/model/ModularDistBaseElem.java
Work on the modular distribution - generate binaries, work on layout.
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / model / ModularDistBaseElem.java
index 35e3f21dd40f01ad2bec30df308913719d180986..fab28ff379e54974ea3dc6fd1b33c96a9657e6bf 100644 (file)
@@ -35,6 +35,19 @@ public class ModularDistBaseElem extends DistParentElem {
                this.type = type;
        }
 
+       public Node getCategoryBase() {
+               // TODO clean this
+               if (type.equals(AETHER_CATEGORY_BASE))
+                       return artifactBase;
+               else
+                       try {
+                               return artifactBase.getParent();
+                       } catch (RepositoryException e) {
+                               throw new SlcException("unable tyo get parent node for "
+                                               + artifactBase, e);
+                       }
+       }
+
        /**
         * Override normal behavior to initialize children only when first requested
         */
@@ -73,7 +86,7 @@ public class ModularDistBaseElem extends DistParentElem {
                }
        }
 
-       public NodeIterator getDistVersions() {
+       private NodeIterator getDistVersions() {
                try {
                        if (AETHER_CATEGORY_BASE.equals(type))
                                return null;