]> 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/DistParentElem.java
Migrate SLC modules
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / model / DistParentElem.java
index 3d7cef270c7288c71d59c27a70353b3156cdb827..fe960b43f31d19da86d0f937b4a4788c2172605e 100644 (file)
@@ -1,30 +1,48 @@
 package org.argeo.slc.client.ui.dist.model;
 
-/** Common super class for all dist tree elements */
-public abstract class DistParentElem {
-       public final static Character VERSION_SEP = '-';
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.argeo.eclipse.ui.TreeParent;
+
+/** Common super class for all tree elements of the Distributions View */
+public abstract class DistParentElem extends TreeParent {
+       protected final static Character VERSION_SEP = '-';
+
+       protected static final List<String> ARGEO_SYSTEM_WKSP;
+       static {
+               List<String> tmpList = new ArrayList<String>();
+               tmpList.add("main");
+               tmpList.add("proxy");
+               tmpList.add("security");
+               tmpList.add("localrepo");
+               ARGEO_SYSTEM_WKSP = Collections.unmodifiableList(tmpList);
+       }
 
        private boolean inHome = false;
        private boolean isReadOnly = false;
 
-       public DistParentElem(boolean inHome, boolean isReadOnly) {
+       public DistParentElem(String name, boolean inHome, boolean isReadOnly) {
+               super(name);
                this.inHome = inHome;
                this.isReadOnly = isReadOnly;
        }
 
-       public DistParentElem() {
+       public DistParentElem(String name) {
+               super(name);
        }
 
-       public abstract String getLabel();
-
-       public abstract Object[] getChildren();
-
-       public boolean hasChildren() {
-               return true;
-       }
-
-       public void dispose() {
-       }
+       // public abstract String getLabel();
+       //
+       // public abstract Object[] getChildren();
+       //
+       // public boolean hasChildren() {
+       // return true;
+       // }
+       //
+       // public void dispose() {
+       // }
 
        public void setInHome(boolean inHome) {
                this.inHome = inHome;