]> git.argeo.org Git - gpl/argeo-slc.git/blob - plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/model/DistParentElem.java
Fix licence management
[gpl/argeo-slc.git] / plugins / 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;
2
3 import java.util.ArrayList;
4 import java.util.Collections;
5 import java.util.List;
6
7 import org.argeo.eclipse.ui.TreeParent;
8
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 = '-';
12
13 protected static final List<String> ARGEO_SYSTEM_WKSP;
14 static {
15 List<String> tmpList = new ArrayList<String>();
16 tmpList.add("main");
17 tmpList.add("proxy");
18 tmpList.add("security");
19 tmpList.add("localrepo");
20 ARGEO_SYSTEM_WKSP = Collections.unmodifiableList(tmpList);
21 }
22
23 private boolean inHome = false;
24 private boolean isReadOnly = false;
25
26 public DistParentElem(String name, boolean inHome, boolean isReadOnly) {
27 super(name);
28 this.inHome = inHome;
29 this.isReadOnly = isReadOnly;
30 }
31
32 public DistParentElem(String name) {
33 super(name);
34 }
35
36 // public abstract String getLabel();
37 //
38 // public abstract Object[] getChildren();
39 //
40 // public boolean hasChildren() {
41 // return true;
42 // }
43 //
44 // public void dispose() {
45 // }
46
47 public void setInHome(boolean inHome) {
48 this.inHome = inHome;
49 }
50
51 public void setReadOnly(boolean isReadOnly) {
52 this.isReadOnly = isReadOnly;
53 }
54
55 public boolean inHome() {
56 return inHome;
57 }
58
59 public boolean isReadOnly() {
60 return isReadOnly;
61 }
62 }