]>
git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/model/DistParentElem.java
1 package org
.argeo
.slc
.client
.ui
.dist
.model
;
3 import java
.util
.ArrayList
;
4 import java
.util
.Collections
;
7 import org
.argeo
.eclipse
.ui
.TreeParent
;
9 /** Common super class for all tree elements of the Distributions View */
10 public abstract class DistParentElem
extends TreeParent
{
11 protected final static Character VERSION_SEP
= '-';
13 protected static final List
<String
> ARGEO_SYSTEM_WKSP
;
15 List
<String
> tmpList
= new ArrayList
<String
>();
18 tmpList
.add("security");
19 tmpList
.add("localrepo");
20 ARGEO_SYSTEM_WKSP
= Collections
.unmodifiableList(tmpList
);
23 private boolean inHome
= false;
24 private boolean isReadOnly
= false;
26 public DistParentElem(String name
, boolean inHome
, boolean isReadOnly
) {
29 this.isReadOnly
= isReadOnly
;
32 public DistParentElem(String name
) {
36 // public abstract String getLabel();
38 // public abstract Object[] getChildren();
40 // public boolean hasChildren() {
44 // public void dispose() {
47 public void setInHome(boolean inHome
) {
51 public void setReadOnly(boolean isReadOnly
) {
52 this.isReadOnly
= isReadOnly
;
55 public boolean inHome() {
59 public boolean isReadOnly() {