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
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
37
38
39
40
41
42
43
44
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 }