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;