Lines 48-55
Link Here
|
48 |
/** Local parent folder */ |
48 |
/** Local parent folder */ |
49 |
private FileObject localParentFolder; |
49 |
private FileObject localParentFolder; |
50 |
|
50 |
|
51 |
private PropertyHandler propertyHandler; |
|
|
52 |
|
53 |
private InternalConfig internalConfig; |
51 |
private InternalConfig internalConfig; |
54 |
|
52 |
|
55 |
/** true if wstcgrp file is present in module folder */ |
53 |
/** true if wstcgrp file is present in module folder */ |
Lines 65-73
Link Here
|
65 |
TCGroupConfig load () throws IOException { |
63 |
TCGroupConfig load () throws IOException { |
66 |
if (DEBUG) Debug.log(TCGroupParser.class, "load ENTER" + " tcGrp:" + tc_id); |
64 |
if (DEBUG) Debug.log(TCGroupParser.class, "load ENTER" + " tcGrp:" + tc_id); |
67 |
TCGroupConfig tcGroupCfg = new TCGroupConfig(); |
65 |
TCGroupConfig tcGroupCfg = new TCGroupConfig(); |
68 |
if (propertyHandler == null) { |
66 |
PropertyHandler propertyHandler = new PropertyHandler(); |
69 |
propertyHandler = new PropertyHandler(); |
|
|
70 |
} |
71 |
InternalConfig internalCfg = getInternalConfig(); |
67 |
InternalConfig internalCfg = getInternalConfig(); |
72 |
internalCfg.clear(); |
68 |
internalCfg.clear(); |
73 |
propertyHandler.readData(tcGroupCfg, internalCfg); |
69 |
propertyHandler.readData(tcGroupCfg, internalCfg); |
Lines 78-86
Link Here
|
78 |
/** Save tcGroup configuration. */ |
74 |
/** Save tcGroup configuration. */ |
79 |
void save (TCGroupConfig tcGroupCfg) throws IOException { |
75 |
void save (TCGroupConfig tcGroupCfg) throws IOException { |
80 |
if (DEBUG) Debug.log(TCGroupParser.class, "save ENTER" + " tcGrp:" + tc_id); |
76 |
if (DEBUG) Debug.log(TCGroupParser.class, "save ENTER" + " tcGrp:" + tc_id); |
81 |
if (propertyHandler == null) { |
77 |
PropertyHandler propertyHandler = new PropertyHandler(); |
82 |
propertyHandler = new PropertyHandler(); |
|
|
83 |
} |
84 |
InternalConfig internalCfg = getInternalConfig(); |
78 |
InternalConfig internalCfg = getInternalConfig(); |
85 |
propertyHandler.writeData(tcGroupCfg, internalCfg); |
79 |
propertyHandler.writeData(tcGroupCfg, internalCfg); |
86 |
if (DEBUG) Debug.log(TCGroupParser.class, "save LEAVE" + " tcGrp:" + tc_id); |
80 |
if (DEBUG) Debug.log(TCGroupParser.class, "save LEAVE" + " tcGrp:" + tc_id); |