Revision 29352 branches/v2_0_0_prep/extensions/extNormalization/src/org/gvsig/normalization/preferences/NormPreferences.java
NormPreferences.java | ||
---|---|---|
53 | 53 |
+ File.separator; |
54 | 54 |
|
55 | 55 |
private ImageIcon icon; |
56 |
|
|
57 | 56 |
private String tag = "Normalization_pattern_folder"; |
58 |
|
|
59 | 57 |
private static final Logger log = LoggerFactory |
60 | 58 |
.getLogger(NormPreferences.class); |
61 |
|
|
62 | 59 |
static String id = NormPreferences.class.getName(); |
63 |
|
|
64 | 60 |
private PreferencesNormPanel panel; |
65 |
|
|
66 | 61 |
private String pathFolder; |
67 | 62 |
|
68 | 63 |
/** |
... | ... | |
73 | 68 |
PluginServices ps = PluginServices.getPluginServices(this); |
74 | 69 |
|
75 | 70 |
String bDir = ps.getClassLoader().getBaseDir(); |
76 |
|
|
77 | 71 |
String path = bDir + File.separator + "images" + File.separator |
78 | 72 |
+ "preferences.png"; |
79 | 73 |
|
... | ... | |
102 | 96 |
|
103 | 97 |
} |
104 | 98 |
|
99 |
/** |
|
100 |
* |
|
101 |
*/ |
|
105 | 102 |
public void storeValues() throws StoreException { |
106 |
|
|
107 | 103 |
String txt = panel.getFolderPattern(); |
108 |
|
|
109 | 104 |
/* Overwrite the text in the persistence file */ |
110 | 105 |
if (txt.compareToIgnoreCase("") != 0) { |
111 |
|
|
112 | 106 |
PluginServices ps = PluginServices.getPluginServices(this); |
113 | 107 |
XMLEntity xml = ps.getPersistentXML(); |
114 |
|
|
115 | 108 |
xml.putProperty(tag, txt); |
116 | 109 |
ps.setPersistentXML(xml); |
117 | 110 |
} |
118 |
|
|
119 | 111 |
} |
120 | 112 |
|
121 | 113 |
/** |
... | ... | |
128 | 120 |
} |
129 | 121 |
} |
130 | 122 |
|
123 |
/** |
|
124 |
* |
|
125 |
*/ |
|
131 | 126 |
public void setChangesApplied() { |
132 | 127 |
setChanged(false); |
133 | 128 |
|
134 | 129 |
} |
135 | 130 |
|
131 |
/** |
|
132 |
* |
|
133 |
*/ |
|
136 | 134 |
public String getID() { |
137 | 135 |
return id; |
138 | 136 |
} |
139 | 137 |
|
138 |
/** |
|
139 |
* |
|
140 |
*/ |
|
140 | 141 |
public ImageIcon getIcon() { |
141 | 142 |
return icon; |
142 | 143 |
} |
143 | 144 |
|
145 |
/** |
|
146 |
* |
|
147 |
*/ |
|
144 | 148 |
public JPanel getPanel() { |
145 | 149 |
return this; |
146 | 150 |
} |
147 | 151 |
|
152 |
/** |
|
153 |
* |
|
154 |
*/ |
|
148 | 155 |
public String getTitle() { |
149 | 156 |
String title = PluginServices.getText(this, "pref_normalization"); |
150 | 157 |
return title; |
151 | 158 |
} |
152 | 159 |
|
160 |
/** |
|
161 |
* |
|
162 |
*/ |
|
153 | 163 |
public void initializeDefaults() { |
154 | 164 |
|
155 | 165 |
} |
156 | 166 |
|
167 |
/** |
|
168 |
* |
|
169 |
*/ |
|
157 | 170 |
public void initializeValues() { |
158 | 171 |
|
159 | 172 |
} |
160 | 173 |
|
174 |
/** |
|
175 |
* |
|
176 |
*/ |
|
161 | 177 |
public boolean isValueChanged() { |
162 | 178 |
return super.hasChanged(); |
163 | 179 |
} |
Also available in: Unified diff