Revision 41282
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.coreplugin.app/org.gvsig.coreplugin.app.mainplugin/src/main/java/org/gvsig/coreplugin/preferences/general/NotificationsPage.form | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8" ?> |
|
2 |
|
|
3 |
<Form version="1.8" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JPanelFormInfo"> |
|
4 |
<AuxValues> |
|
5 |
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> |
|
6 |
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> |
|
7 |
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="false"/> |
|
8 |
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> |
|
9 |
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> |
|
10 |
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="2"/> |
|
11 |
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> |
|
12 |
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> |
|
13 |
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="4"/> |
|
14 |
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,78,0,0,1,-7"/> |
|
15 |
</AuxValues> |
|
16 |
<SubComponents> |
|
17 |
<Component class="javax.swing.JLabel" name="jLabel1"> |
|
18 |
<Properties> |
|
19 |
<Property name="text" type="java.lang.String" value="Select the notification mode"/> |
|
20 |
<Property name="horizontalTextPosition" type="int" value="2"/> |
|
21 |
</Properties> |
|
22 |
<Constraints> |
|
23 |
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> |
|
24 |
<GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="18" weightX="0.0" weightY="0.0"/> |
|
25 |
</Constraint> |
|
26 |
</Constraints> |
|
27 |
</Component> |
|
28 |
<Component class="javax.swing.JCheckBox" name="jchkShowInConsole"> |
|
29 |
<Properties> |
|
30 |
<Property name="text" type="java.lang.String" value="Show notificacion in console window"/> |
|
31 |
</Properties> |
|
32 |
<Constraints> |
|
33 |
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> |
|
34 |
<GridBagConstraints gridX="0" gridY="4" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="17" weightX="0.0" weightY="0.0"/> |
|
35 |
</Constraint> |
|
36 |
</Constraints> |
|
37 |
</Component> |
|
38 |
<Component class="javax.swing.JCheckBox" name="jchkShowInStatusbar"> |
|
39 |
<Properties> |
|
40 |
<Property name="text" type="java.lang.String" value="Show notifications in statusbar"/> |
|
41 |
<Property name="horizontalAlignment" type="int" value="2"/> |
|
42 |
</Properties> |
|
43 |
<Constraints> |
|
44 |
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> |
|
45 |
<GridBagConstraints gridX="0" gridY="2" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="17" weightX="0.0" weightY="0.0"/> |
|
46 |
</Constraint> |
|
47 |
</Constraints> |
|
48 |
</Component> |
|
49 |
<Component class="javax.swing.JLabel" name="jLabel2"> |
|
50 |
<Properties> |
|
51 |
<Property name="text" type="java.lang.String" value="The changes take effect in next execution of the application"/> |
|
52 |
</Properties> |
|
53 |
<Constraints> |
|
54 |
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> |
|
55 |
<GridBagConstraints gridX="0" gridY="6" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> |
|
56 |
</Constraint> |
|
57 |
</Constraints> |
|
58 |
</Component> |
|
59 |
</SubComponents> |
|
60 |
<LayoutCode> |
|
61 |
<CodeStatement> |
|
62 |
<CodeExpression id="1_layout"> |
|
63 |
<CodeVariable name="layout" type="4096" declaredType="java.awt.GridBagLayout"/> |
|
64 |
<ExpressionOrigin> |
|
65 |
<ExpressionProvider type="CodeConstructor"> |
|
66 |
<CodeConstructor class="java.awt.GridBagLayout" parameterTypes=""/> |
|
67 |
</ExpressionProvider> |
|
68 |
</ExpressionOrigin> |
|
69 |
</CodeExpression> |
|
70 |
<StatementProvider type="CodeExpression"> |
|
71 |
<CodeExpression id="1_layout"/> |
|
72 |
</StatementProvider> |
|
73 |
</CodeStatement> |
|
74 |
<CodeStatement> |
|
75 |
<CodeExpression id="1_layout"/> |
|
76 |
<StatementProvider type="CodeField"> |
|
77 |
<CodeField name="columnWidths" class="java.awt.GridBagLayout"/> |
|
78 |
</StatementProvider> |
|
79 |
<Parameters> |
|
80 |
<CodeExpression id="2"> |
|
81 |
<ExpressionOrigin> |
|
82 |
<Value type="[I" editor="org.netbeans.modules.form.layoutsupport.delegates.GridBagLayoutSupport$IntArrayPropertyEditor"> |
|
83 |
<PropertyValue value="[0, 5, 0]"/> |
|
84 |
</Value> |
|
85 |
</ExpressionOrigin> |
|
86 |
</CodeExpression> |
|
87 |
</Parameters> |
|
88 |
</CodeStatement> |
|
89 |
<CodeStatement> |
|
90 |
<CodeExpression id="1_layout"/> |
|
91 |
<StatementProvider type="CodeField"> |
|
92 |
<CodeField name="rowHeights" class="java.awt.GridBagLayout"/> |
|
93 |
</StatementProvider> |
|
94 |
<Parameters> |
|
95 |
<CodeExpression id="3"> |
|
96 |
<ExpressionOrigin> |
|
97 |
<Value type="[I" editor="org.netbeans.modules.form.layoutsupport.delegates.GridBagLayoutSupport$IntArrayPropertyEditor"> |
|
98 |
<PropertyValue value="[0, 5, 0, 5, 0, 5, 0]"/> |
|
99 |
</Value> |
|
100 |
</ExpressionOrigin> |
|
101 |
</CodeExpression> |
|
102 |
</Parameters> |
|
103 |
</CodeStatement> |
|
104 |
<CodeStatement> |
|
105 |
<CodeExpression id="4"> |
|
106 |
<ExpressionOrigin> |
|
107 |
<ExpressionProvider type="ComponentRef"> |
|
108 |
<ComponentRef name="."/> |
|
109 |
</ExpressionProvider> |
|
110 |
</ExpressionOrigin> |
|
111 |
</CodeExpression> |
|
112 |
<StatementProvider type="CodeMethod"> |
|
113 |
<CodeMethod name="setLayout" class="java.awt.Container" parameterTypes="java.awt.LayoutManager"/> |
|
114 |
</StatementProvider> |
|
115 |
<Parameters> |
|
116 |
<CodeExpression id="1_layout"/> |
|
117 |
</Parameters> |
|
118 |
</CodeStatement> |
|
119 |
<CodeStatement> |
|
120 |
<CodeExpression id="5_gridBagConstraints"> |
|
121 |
<CodeVariable name="gridBagConstraints" type="20480" declaredType="java.awt.GridBagConstraints"/> |
|
122 |
<ExpressionOrigin> |
|
123 |
<ExpressionProvider type="CodeConstructor"> |
|
124 |
<CodeConstructor class="java.awt.GridBagConstraints" parameterTypes=""/> |
|
125 |
</ExpressionProvider> |
|
126 |
</ExpressionOrigin> |
|
127 |
</CodeExpression> |
|
128 |
<StatementProvider type="CodeExpression"> |
|
129 |
<CodeExpression id="5_gridBagConstraints"/> |
|
130 |
</StatementProvider> |
|
131 |
</CodeStatement> |
|
132 |
<CodeStatement> |
|
133 |
<CodeExpression id="5_gridBagConstraints"/> |
|
134 |
<StatementProvider type="CodeField"> |
|
135 |
<CodeField name="gridx" class="java.awt.GridBagConstraints"/> |
|
136 |
</StatementProvider> |
|
137 |
<Parameters> |
|
138 |
<CodeExpression id="6"> |
|
139 |
<ExpressionOrigin> |
|
140 |
<Value type="int" value="0"/> |
|
141 |
</ExpressionOrigin> |
|
142 |
</CodeExpression> |
|
143 |
</Parameters> |
|
144 |
</CodeStatement> |
|
145 |
<CodeStatement> |
|
146 |
<CodeExpression id="5_gridBagConstraints"/> |
|
147 |
<StatementProvider type="CodeField"> |
|
148 |
<CodeField name="gridy" class="java.awt.GridBagConstraints"/> |
|
149 |
</StatementProvider> |
|
150 |
<Parameters> |
|
151 |
<CodeExpression id="7"> |
|
152 |
<ExpressionOrigin> |
|
153 |
<Value type="int" value="0"/> |
|
154 |
</ExpressionOrigin> |
|
155 |
</CodeExpression> |
|
156 |
</Parameters> |
|
157 |
</CodeStatement> |
|
158 |
<CodeStatement> |
|
159 |
<CodeExpression id="5_gridBagConstraints"/> |
|
160 |
<StatementProvider type="CodeField"> |
|
161 |
<CodeField name="fill" class="java.awt.GridBagConstraints"/> |
|
162 |
</StatementProvider> |
|
163 |
<Parameters> |
|
164 |
<CodeExpression id="8"> |
|
165 |
<ExpressionOrigin> |
|
166 |
<Value type="int" value="2"/> |
|
167 |
</ExpressionOrigin> |
|
168 |
</CodeExpression> |
|
169 |
</Parameters> |
|
170 |
</CodeStatement> |
|
171 |
<CodeStatement> |
|
172 |
<CodeExpression id="5_gridBagConstraints"/> |
|
173 |
<StatementProvider type="CodeField"> |
|
174 |
<CodeField name="anchor" class="java.awt.GridBagConstraints"/> |
|
175 |
</StatementProvider> |
|
176 |
<Parameters> |
|
177 |
<CodeExpression id="9"> |
|
178 |
<ExpressionOrigin> |
|
179 |
<Value type="int" value="18"/> |
|
180 |
</ExpressionOrigin> |
|
181 |
</CodeExpression> |
|
182 |
</Parameters> |
|
183 |
</CodeStatement> |
|
184 |
<CodeStatement> |
|
185 |
<CodeExpression id="4"/> |
|
186 |
<StatementProvider type="CodeMethod"> |
|
187 |
<CodeMethod name="add" class="java.awt.Container" parameterTypes="java.awt.Component, java.lang.Object"/> |
|
188 |
</StatementProvider> |
|
189 |
<Parameters> |
|
190 |
<CodeExpression id="10_jLabel1"> |
|
191 |
<CodeVariable name="jLabel1" type="8196" declaredType="javax.swing.JLabel"/> |
|
192 |
<ExpressionOrigin> |
|
193 |
<ExpressionProvider type="ComponentRef"> |
|
194 |
<ComponentRef name="jLabel1"/> |
|
195 |
</ExpressionProvider> |
|
196 |
</ExpressionOrigin> |
|
197 |
</CodeExpression> |
|
198 |
<CodeExpression id="5_gridBagConstraints"/> |
|
199 |
</Parameters> |
|
200 |
</CodeStatement> |
|
201 |
<CodeStatement> |
|
202 |
<CodeExpression id="11_gridBagConstraints"> |
|
203 |
<CodeVariable name="gridBagConstraints"/> |
|
204 |
<ExpressionOrigin> |
|
205 |
<ExpressionProvider type="CodeConstructor"> |
|
206 |
<CodeConstructor class="java.awt.GridBagConstraints" parameterTypes=""/> |
|
207 |
</ExpressionProvider> |
|
208 |
</ExpressionOrigin> |
|
209 |
</CodeExpression> |
|
210 |
<StatementProvider type="CodeExpression"> |
|
211 |
<CodeExpression id="11_gridBagConstraints"/> |
|
212 |
</StatementProvider> |
|
213 |
</CodeStatement> |
|
214 |
<CodeStatement> |
|
215 |
<CodeExpression id="11_gridBagConstraints"/> |
|
216 |
<StatementProvider type="CodeField"> |
|
217 |
<CodeField name="gridx" class="java.awt.GridBagConstraints"/> |
|
218 |
</StatementProvider> |
|
219 |
<Parameters> |
|
220 |
<CodeExpression id="12"> |
|
221 |
<ExpressionOrigin> |
|
222 |
<Value type="int" value="0"/> |
|
223 |
</ExpressionOrigin> |
|
224 |
</CodeExpression> |
|
225 |
</Parameters> |
|
226 |
</CodeStatement> |
|
227 |
<CodeStatement> |
|
228 |
<CodeExpression id="11_gridBagConstraints"/> |
|
229 |
<StatementProvider type="CodeField"> |
|
230 |
<CodeField name="gridy" class="java.awt.GridBagConstraints"/> |
|
231 |
</StatementProvider> |
|
232 |
<Parameters> |
|
233 |
<CodeExpression id="13"> |
|
234 |
<ExpressionOrigin> |
|
235 |
<Value type="int" value="4"/> |
|
236 |
</ExpressionOrigin> |
|
237 |
</CodeExpression> |
|
238 |
</Parameters> |
|
239 |
</CodeStatement> |
|
240 |
<CodeStatement> |
|
241 |
<CodeExpression id="11_gridBagConstraints"/> |
|
242 |
<StatementProvider type="CodeField"> |
|
243 |
<CodeField name="anchor" class="java.awt.GridBagConstraints"/> |
|
244 |
</StatementProvider> |
|
245 |
<Parameters> |
|
246 |
<CodeExpression id="14"> |
|
247 |
<ExpressionOrigin> |
|
248 |
<Value type="int" value="17"/> |
|
249 |
</ExpressionOrigin> |
|
250 |
</CodeExpression> |
|
251 |
</Parameters> |
|
252 |
</CodeStatement> |
|
253 |
<CodeStatement> |
|
254 |
<CodeExpression id="4"/> |
|
255 |
<StatementProvider type="CodeMethod"> |
|
256 |
<CodeMethod name="add" class="java.awt.Container" parameterTypes="java.awt.Component, java.lang.Object"/> |
|
257 |
</StatementProvider> |
|
258 |
<Parameters> |
|
259 |
<CodeExpression id="15_jchkShowInConsole"> |
|
260 |
<CodeVariable name="jchkShowInConsole" type="8196" declaredType="javax.swing.JCheckBox"/> |
|
261 |
<ExpressionOrigin> |
|
262 |
<ExpressionProvider type="ComponentRef"> |
|
263 |
<ComponentRef name="jchkShowInConsole"/> |
|
264 |
</ExpressionProvider> |
|
265 |
</ExpressionOrigin> |
|
266 |
</CodeExpression> |
|
267 |
<CodeExpression id="11_gridBagConstraints"/> |
|
268 |
</Parameters> |
|
269 |
</CodeStatement> |
|
270 |
<CodeStatement> |
|
271 |
<CodeExpression id="16_gridBagConstraints"> |
|
272 |
<CodeVariable name="gridBagConstraints"/> |
|
273 |
<ExpressionOrigin> |
|
274 |
<ExpressionProvider type="CodeConstructor"> |
|
275 |
<CodeConstructor class="java.awt.GridBagConstraints" parameterTypes=""/> |
|
276 |
</ExpressionProvider> |
|
277 |
</ExpressionOrigin> |
|
278 |
</CodeExpression> |
|
279 |
<StatementProvider type="CodeExpression"> |
|
280 |
<CodeExpression id="16_gridBagConstraints"/> |
|
281 |
</StatementProvider> |
|
282 |
</CodeStatement> |
|
283 |
<CodeStatement> |
|
284 |
<CodeExpression id="16_gridBagConstraints"/> |
|
285 |
<StatementProvider type="CodeField"> |
|
286 |
<CodeField name="gridx" class="java.awt.GridBagConstraints"/> |
|
287 |
</StatementProvider> |
|
288 |
<Parameters> |
|
289 |
<CodeExpression id="17"> |
|
290 |
<ExpressionOrigin> |
|
291 |
<Value type="int" value="0"/> |
|
292 |
</ExpressionOrigin> |
|
293 |
</CodeExpression> |
|
294 |
</Parameters> |
|
295 |
</CodeStatement> |
|
296 |
<CodeStatement> |
|
297 |
<CodeExpression id="16_gridBagConstraints"/> |
|
298 |
<StatementProvider type="CodeField"> |
|
299 |
<CodeField name="gridy" class="java.awt.GridBagConstraints"/> |
|
300 |
</StatementProvider> |
|
301 |
<Parameters> |
|
302 |
<CodeExpression id="18"> |
|
303 |
<ExpressionOrigin> |
|
304 |
<Value type="int" value="2"/> |
|
305 |
</ExpressionOrigin> |
|
306 |
</CodeExpression> |
|
307 |
</Parameters> |
|
308 |
</CodeStatement> |
|
309 |
<CodeStatement> |
|
310 |
<CodeExpression id="16_gridBagConstraints"/> |
|
311 |
<StatementProvider type="CodeField"> |
|
312 |
<CodeField name="fill" class="java.awt.GridBagConstraints"/> |
|
313 |
</StatementProvider> |
|
314 |
<Parameters> |
|
315 |
<CodeExpression id="19"> |
|
316 |
<ExpressionOrigin> |
|
317 |
<Value type="int" value="2"/> |
|
318 |
</ExpressionOrigin> |
|
319 |
</CodeExpression> |
|
320 |
</Parameters> |
|
321 |
</CodeStatement> |
|
322 |
<CodeStatement> |
|
323 |
<CodeExpression id="16_gridBagConstraints"/> |
|
324 |
<StatementProvider type="CodeField"> |
|
325 |
<CodeField name="anchor" class="java.awt.GridBagConstraints"/> |
|
326 |
</StatementProvider> |
|
327 |
<Parameters> |
|
328 |
<CodeExpression id="20"> |
|
329 |
<ExpressionOrigin> |
|
330 |
<Value type="int" value="17"/> |
|
331 |
</ExpressionOrigin> |
|
332 |
</CodeExpression> |
|
333 |
</Parameters> |
|
334 |
</CodeStatement> |
|
335 |
<CodeStatement> |
|
336 |
<CodeExpression id="4"/> |
|
337 |
<StatementProvider type="CodeMethod"> |
|
338 |
<CodeMethod name="add" class="java.awt.Container" parameterTypes="java.awt.Component, java.lang.Object"/> |
|
339 |
</StatementProvider> |
|
340 |
<Parameters> |
|
341 |
<CodeExpression id="21_jchkShowInStatusbar"> |
|
342 |
<CodeVariable name="jchkShowInStatusbar" type="8196" declaredType="javax.swing.JCheckBox"/> |
|
343 |
<ExpressionOrigin> |
|
344 |
<ExpressionProvider type="ComponentRef"> |
|
345 |
<ComponentRef name="jchkShowInStatusbar"/> |
|
346 |
</ExpressionProvider> |
|
347 |
</ExpressionOrigin> |
|
348 |
</CodeExpression> |
|
349 |
<CodeExpression id="16_gridBagConstraints"/> |
|
350 |
</Parameters> |
|
351 |
</CodeStatement> |
|
352 |
<CodeStatement> |
|
353 |
<CodeExpression id="22_gridBagConstraints"> |
|
354 |
<CodeVariable name="gridBagConstraints"/> |
|
355 |
<ExpressionOrigin> |
|
356 |
<ExpressionProvider type="CodeConstructor"> |
|
357 |
<CodeConstructor class="java.awt.GridBagConstraints" parameterTypes=""/> |
|
358 |
</ExpressionProvider> |
|
359 |
</ExpressionOrigin> |
|
360 |
</CodeExpression> |
|
361 |
<StatementProvider type="CodeExpression"> |
|
362 |
<CodeExpression id="22_gridBagConstraints"/> |
|
363 |
</StatementProvider> |
|
364 |
</CodeStatement> |
|
365 |
<CodeStatement> |
|
366 |
<CodeExpression id="22_gridBagConstraints"/> |
|
367 |
<StatementProvider type="CodeField"> |
|
368 |
<CodeField name="gridx" class="java.awt.GridBagConstraints"/> |
|
369 |
</StatementProvider> |
|
370 |
<Parameters> |
|
371 |
<CodeExpression id="23"> |
|
372 |
<ExpressionOrigin> |
|
373 |
<Value type="int" value="0"/> |
|
374 |
</ExpressionOrigin> |
|
375 |
</CodeExpression> |
|
376 |
</Parameters> |
|
377 |
</CodeStatement> |
|
378 |
<CodeStatement> |
|
379 |
<CodeExpression id="22_gridBagConstraints"/> |
|
380 |
<StatementProvider type="CodeField"> |
|
381 |
<CodeField name="gridy" class="java.awt.GridBagConstraints"/> |
|
382 |
</StatementProvider> |
|
383 |
<Parameters> |
|
384 |
<CodeExpression id="24"> |
|
385 |
<ExpressionOrigin> |
|
386 |
<Value type="int" value="6"/> |
|
387 |
</ExpressionOrigin> |
|
388 |
</CodeExpression> |
|
389 |
</Parameters> |
|
390 |
</CodeStatement> |
|
391 |
<CodeStatement> |
|
392 |
<CodeExpression id="4"/> |
|
393 |
<StatementProvider type="CodeMethod"> |
|
394 |
<CodeMethod name="add" class="java.awt.Container" parameterTypes="java.awt.Component, java.lang.Object"/> |
|
395 |
</StatementProvider> |
|
396 |
<Parameters> |
|
397 |
<CodeExpression id="25_jLabel2"> |
|
398 |
<CodeVariable name="jLabel2" type="8196" declaredType="javax.swing.JLabel"/> |
|
399 |
<ExpressionOrigin> |
|
400 |
<ExpressionProvider type="ComponentRef"> |
|
401 |
<ComponentRef name="jLabel2"/> |
|
402 |
</ExpressionProvider> |
|
403 |
</ExpressionOrigin> |
|
404 |
</CodeExpression> |
|
405 |
<CodeExpression id="22_gridBagConstraints"/> |
|
406 |
</Parameters> |
|
407 |
</CodeStatement> |
|
408 |
</LayoutCode> |
|
409 |
</Form> |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.coreplugin.app/org.gvsig.coreplugin.app.mainplugin/src/main/java/org/gvsig/coreplugin/preferences/general/NotificationsPage.java | ||
---|---|---|
1 |
/* |
|
2 |
* To change this license header, choose License Headers in Project Properties. |
|
3 |
* To change this template file, choose Tools | Templates |
|
4 |
* and open the template in the editor. |
|
5 |
*/ |
|
6 |
|
|
7 |
package org.gvsig.coreplugin.preferences.general; |
|
8 |
|
|
9 |
import java.awt.GridBagConstraints; |
|
10 |
import java.awt.GridBagLayout; |
|
11 |
import javax.swing.ImageIcon; |
|
12 |
import javax.swing.JCheckBox; |
|
13 |
import javax.swing.JLabel; |
|
14 |
import javax.swing.JPanel; |
|
15 |
import javax.swing.SwingConstants; |
|
16 |
import org.gvsig.andami.PluginServices; |
|
17 |
import org.gvsig.andami.PluginsLocator; |
|
18 |
import org.gvsig.andami.PluginsManager; |
|
19 |
import org.gvsig.andami.preferences.AbstractPreferencePage; |
|
20 |
import org.gvsig.andami.preferences.StoreException; |
|
21 |
import org.gvsig.coreplugin.PreferencesExtension; |
|
22 |
import org.gvsig.tools.dynobject.DynObject; |
|
23 |
|
|
24 |
/** |
|
25 |
* |
|
26 |
* @author usuario |
|
27 |
*/ |
|
28 |
public class NotificationsPage extends AbstractPreferencePage { |
|
29 |
|
|
30 |
/** |
|
31 |
* Creates new form NotificationsPage |
|
32 |
*/ |
|
33 |
public NotificationsPage() { |
|
34 |
initComponents(); |
|
35 |
} |
|
36 |
|
|
37 |
/** |
|
38 |
* This method is called from within the constructor to |
|
39 |
* initialize the form. |
|
40 |
* WARNING: Do NOT modify this code. The content of this method is |
|
41 |
* always regenerated by the Form Editor. |
|
42 |
*/ |
|
43 |
@SuppressWarnings("unchecked") |
|
44 |
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |
|
45 |
private void initComponents() { |
|
46 |
GridBagConstraints gridBagConstraints; |
|
47 |
|
|
48 |
jLabel1 = new JLabel(); |
|
49 |
jchkShowInConsole = new JCheckBox(); |
|
50 |
jchkShowInStatusbar = new JCheckBox(); |
|
51 |
jLabel2 = new JLabel(); |
|
52 |
|
|
53 |
GridBagLayout layout = new GridBagLayout(); |
|
54 |
layout.columnWidths = new int[] {0, 5, 0}; |
|
55 |
layout.rowHeights = new int[] {0, 5, 0, 5, 0, 5, 0}; |
|
56 |
setLayout(layout); |
|
57 |
|
|
58 |
jLabel1.setText("Select the notification mode"); |
|
59 |
jLabel1.setHorizontalTextPosition(SwingConstants.LEFT); |
|
60 |
gridBagConstraints = new GridBagConstraints(); |
|
61 |
gridBagConstraints.gridx = 0; |
|
62 |
gridBagConstraints.gridy = 0; |
|
63 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL; |
|
64 |
gridBagConstraints.anchor = GridBagConstraints.NORTHWEST; |
|
65 |
add(jLabel1, gridBagConstraints); |
|
66 |
|
|
67 |
jchkShowInConsole.setText("Show notificacion in console window"); |
|
68 |
gridBagConstraints = new GridBagConstraints(); |
|
69 |
gridBagConstraints.gridx = 0; |
|
70 |
gridBagConstraints.gridy = 4; |
|
71 |
gridBagConstraints.anchor = GridBagConstraints.WEST; |
|
72 |
add(jchkShowInConsole, gridBagConstraints); |
|
73 |
|
|
74 |
jchkShowInStatusbar.setText("Show notifications in statusbar"); |
|
75 |
jchkShowInStatusbar.setHorizontalAlignment(SwingConstants.LEFT); |
|
76 |
gridBagConstraints = new GridBagConstraints(); |
|
77 |
gridBagConstraints.gridx = 0; |
|
78 |
gridBagConstraints.gridy = 2; |
|
79 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL; |
|
80 |
gridBagConstraints.anchor = GridBagConstraints.WEST; |
|
81 |
add(jchkShowInStatusbar, gridBagConstraints); |
|
82 |
|
|
83 |
jLabel2.setText("The changes take effect in next execution of the application"); |
|
84 |
gridBagConstraints = new GridBagConstraints(); |
|
85 |
gridBagConstraints.gridx = 0; |
|
86 |
gridBagConstraints.gridy = 6; |
|
87 |
add(jLabel2, gridBagConstraints); |
|
88 |
}// </editor-fold>//GEN-END:initComponents |
|
89 |
|
|
90 |
|
|
91 |
// Variables declaration - do not modify//GEN-BEGIN:variables |
|
92 |
protected JLabel jLabel1; |
|
93 |
protected JLabel jLabel2; |
|
94 |
protected JCheckBox jchkShowInConsole; |
|
95 |
protected JCheckBox jchkShowInStatusbar; |
|
96 |
// End of variables declaration//GEN-END:variables |
|
97 |
|
|
98 |
@Override |
|
99 |
public void storeValues() throws StoreException { |
|
100 |
PluginsManager pluginsManager = PluginsLocator.getManager(); |
|
101 |
PluginServices plugin = pluginsManager.getPlugin(PreferencesExtension.class); |
|
102 |
|
|
103 |
DynObject pluginProperties = plugin.getPluginProperties(); |
|
104 |
pluginProperties.setDynValue( |
|
105 |
"showNotificationsInConsole", |
|
106 |
new Boolean(jchkShowInConsole.isSelected()) |
|
107 |
); |
|
108 |
pluginProperties.setDynValue( |
|
109 |
"showNotificationsInStatusbar", |
|
110 |
new Boolean(jchkShowInStatusbar.isSelected()) |
|
111 |
); |
|
112 |
plugin.savePluginProperties(); |
|
113 |
} |
|
114 |
|
|
115 |
@Override |
|
116 |
public void setChangesApplied() { |
|
117 |
|
|
118 |
} |
|
119 |
|
|
120 |
public String getID() { |
|
121 |
return this.getClass().getName(); |
|
122 |
} |
|
123 |
|
|
124 |
public String getTitle() { |
|
125 |
return "Notificactions mode"; |
|
126 |
} |
|
127 |
|
|
128 |
public JPanel getPanel() { |
|
129 |
return this; |
|
130 |
} |
|
131 |
|
|
132 |
public void initializeValues() { |
|
133 |
PluginsManager pluginsManager = PluginsLocator.getManager(); |
|
134 |
PluginServices plugin = pluginsManager.getPlugin(PreferencesExtension.class); |
|
135 |
|
|
136 |
DynObject pluginProperties = plugin.getPluginProperties(); |
|
137 |
jchkShowInStatusbar.setSelected( |
|
138 |
((Boolean)pluginProperties.getDynValue("showNotificationsInStatusbar")).booleanValue()); |
|
139 |
jchkShowInConsole.setSelected( |
|
140 |
((Boolean)pluginProperties.getDynValue("showNotificationsInConsole")).booleanValue()); |
|
141 |
} |
|
142 |
|
|
143 |
public void initializeDefaults() { |
|
144 |
jchkShowInStatusbar.setSelected(true); |
|
145 |
jchkShowInConsole.setSelected(false); |
|
146 |
} |
|
147 |
|
|
148 |
public ImageIcon getIcon() { |
|
149 |
return null; |
|
150 |
} |
|
151 |
|
|
152 |
public boolean isValueChanged() { |
|
153 |
return true; |
|
154 |
} |
|
155 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.coreplugin.app/org.gvsig.coreplugin.app.mainplugin/src/main/java/org/gvsig/coreplugin/StatusBar.java | ||
---|---|---|
26 | 26 |
import javax.swing.JOptionPane; |
27 | 27 |
|
28 | 28 |
import org.gvsig.andami.PluginServices; |
29 |
import org.gvsig.andami.PluginsLocator; |
|
30 |
import org.gvsig.andami.PluginsManager; |
|
29 | 31 |
import org.gvsig.andami.messages.MessageEvent; |
30 | 32 |
import org.gvsig.andami.messages.NotificationListener; |
31 | 33 |
import org.gvsig.andami.messages.NotificationManager; |
32 | 34 |
import org.gvsig.andami.plugins.Extension; |
35 |
import org.gvsig.andami.ui.mdiFrame.NewStatusBar; |
|
36 |
import org.gvsig.tools.dynobject.DynObject; |
|
33 | 37 |
|
38 |
import static org.gvsig.coreplugin.Consola.consolaFrame; |
|
39 |
|
|
34 | 40 |
/** |
35 | 41 |
* Plugin que escucha las notificaciones que recive la aplicaci?n y las muestra |
36 | 42 |
* en la barra de estado |
37 | 43 |
*/ |
38 | 44 |
public class StatusBar extends Extension implements NotificationListener { |
39 | 45 |
|
40 |
/** |
|
41 |
* @see com.iver.mdiApp.IExtension#initialize() |
|
42 |
*/ |
|
43 | 46 |
public void initialize() { |
44 |
NotificationManager.addNotificationListener(this); |
|
47 |
PluginsManager pluginsManager = PluginsLocator.getManager(); |
|
48 |
PluginServices plugin = pluginsManager.getPlugin(this.getClass()); |
|
49 |
|
|
50 |
DynObject pluginProperties = plugin.getPluginProperties(); |
|
51 |
Boolean showNotificationsInStatusbar = (Boolean) pluginProperties.getDynValue("showNotificationsInStatusbar"); |
|
52 |
if ( showNotificationsInStatusbar == null || showNotificationsInStatusbar.booleanValue() ) { |
|
53 |
NotificationManager.addNotificationListener(this); |
|
54 |
} |
|
45 | 55 |
} |
46 | 56 |
|
47 |
/** |
|
48 |
* @see com.iver.mdiApp.NotificationListener#errorEvent(java.lang.String) |
|
49 |
*/ |
|
50 | 57 |
public void errorEvent(MessageEvent e) { |
51 | 58 |
String msg = e.getMessages()[0]; |
52 |
PluginServices.getMainFrame().getStatusBar().message(msg, JOptionPane.ERROR_MESSAGE); |
|
59 |
NewStatusBar statusbar = PluginServices.getMainFrame().getStatusBar(); |
|
60 |
statusbar.message(msg, JOptionPane.ERROR_MESSAGE); |
|
53 | 61 |
} |
54 | 62 |
|
55 |
/** |
|
56 |
* @see com.iver.mdiApp.NotificationListener#warningEvent(java.lang.String) |
|
57 |
*/ |
|
58 | 63 |
public void warningEvent(MessageEvent e) { |
59 |
PluginServices.getMainFrame().getStatusBar() |
|
60 |
.setWarningText(e.getMessages()[0]); |
|
64 |
String msg = e.getMessages()[0]; |
|
65 |
NewStatusBar statusbar = PluginServices.getMainFrame().getStatusBar(); |
|
66 |
statusbar.message(msg, JOptionPane.WARNING_MESSAGE); |
|
61 | 67 |
} |
62 | 68 |
|
63 |
/** |
|
64 |
* @see com.iver.mdiApp.NotificationListener#infoEvent(java.lang.String) |
|
65 |
*/ |
|
66 | 69 |
public void infoEvent(MessageEvent e) { |
67 |
PluginServices.getMainFrame().getStatusBar() |
|
68 |
.setInfoText(e.getMessages()[0]); |
|
70 |
String msg = e.getMessages()[0]; |
|
71 |
NewStatusBar statusbar = PluginServices.getMainFrame().getStatusBar(); |
|
72 |
statusbar.message(msg, JOptionPane.INFORMATION_MESSAGE); |
|
69 | 73 |
} |
70 | 74 |
|
71 |
/* |
|
72 |
* (non-Javadoc) |
|
73 |
* |
|
74 |
* @see com.iver.andami.plugins.Extension#execute(java.lang.String) |
|
75 |
*/ |
|
76 | 75 |
public void execute(String actionCommand) { |
77 |
// TODO Auto-generated method stub |
|
78 |
|
|
76 |
// Do nothing |
|
79 | 77 |
} |
80 | 78 |
|
81 |
/* |
|
82 |
* (non-Javadoc) |
|
83 |
* |
|
84 |
* @see com.iver.andami.plugins.Extension#isEnabled() |
|
85 |
*/ |
|
86 | 79 |
public boolean isEnabled() { |
87 |
// TODO Auto-generated method stub |
|
88 | 80 |
return false; |
89 | 81 |
} |
90 | 82 |
|
91 |
/* |
|
92 |
* (non-Javadoc) |
|
93 |
* |
|
94 |
* @see com.iver.andami.plugins.Extension#isVisible() |
|
95 |
*/ |
|
96 | 83 |
public boolean isVisible() { |
97 |
// TODO Auto-generated method stub |
|
98 | 84 |
return false; |
99 | 85 |
} |
100 | 86 |
|
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.coreplugin.app/org.gvsig.coreplugin.app.mainplugin/src/main/java/org/gvsig/coreplugin/Consola.java | ||
---|---|---|
10 | 10 |
* |
11 | 11 |
* This program is distributed in the hope that it will be useful, |
12 | 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 | 14 |
* GNU General Public License for more details. |
15 | 15 |
* |
16 | 16 |
* You should have received a copy of the GNU General Public License |
17 | 17 |
* along with this program; if not, write to the Free Software |
18 | 18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
19 |
* MA 02110-1301, USA.
|
|
19 |
* MA 02110-1301, USA. |
|
20 | 20 |
* |
21 | 21 |
* For any additional information, do not hesitate to contact us |
22 | 22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
... | ... | |
25 | 25 |
|
26 | 26 |
import org.gvsig.andami.IconThemeHelper; |
27 | 27 |
import org.gvsig.andami.PluginServices; |
28 |
import org.gvsig.andami.PluginsLocator; |
|
29 |
import org.gvsig.andami.PluginsManager; |
|
28 | 30 |
import org.gvsig.andami.messages.NotificationManager; |
29 | 31 |
import org.gvsig.andami.plugins.Extension; |
32 |
import org.gvsig.tools.dynobject.DynObject; |
|
30 | 33 |
|
31 |
|
|
32 | 34 |
/** |
33 | 35 |
* Extensi?n que registra un frame en la aplicaci?n que recibe los eventos de |
34 | 36 |
* la consola de la aplicaci?n y los muestra en el frame |
35 | 37 |
*/ |
36 | 38 |
public class Consola extends Extension { |
37 |
static PluginServices ps; |
|
39 |
|
|
40 |
//static PluginServices ps; |
|
38 | 41 |
public static ConsolaFrame consolaFrame; |
39 | 42 |
public static NotificationDialogNew notificationDialogNew; |
40 | 43 |
public static NotificationDialog notificationDialog; |
... | ... | |
43 | 46 |
* @see com.iver.mdiApp.IExtension#initialize() |
44 | 47 |
*/ |
45 | 48 |
public void initialize() { |
46 |
IconThemeHelper.registerIcon("action", "show-console", this); |
|
47 |
|
|
48 |
ps = PluginServices.getPluginServices(this); |
|
49 |
consolaFrame = new ConsolaFrame(); |
|
50 |
NotificationManager.addNotificationListener(consolaFrame); |
|
49 |
IconThemeHelper.registerIcon("action", "show-console", this); |
|
51 | 50 |
|
52 |
notificationDialogNew = new NotificationDialogNew();
|
|
53 |
NotificationManager.addNotificationListener(notificationDialogNew );
|
|
51 |
PluginsManager pluginsManager = PluginsLocator.getManager();
|
|
52 |
PluginServices plugin = pluginsManager.getPlugin(this.getClass());
|
|
54 | 53 |
|
55 |
// notificationDialog= new NotificationDialog();
|
|
56 |
// NotificationManager.addNotificationListener(notificationDialog);
|
|
54 |
consolaFrame = new ConsolaFrame();
|
|
55 |
NotificationManager.addNotificationListener(consolaFrame);
|
|
57 | 56 |
|
57 |
DynObject pluginProperties = plugin.getPluginProperties(); |
|
58 |
Boolean showNotificationsInConsole = (Boolean) pluginProperties.getDynValue("showNotificationsInConsole"); |
|
59 |
if ( showNotificationsInConsole == null || showNotificationsInConsole.booleanValue() ) { |
|
60 |
notificationDialogNew = new NotificationDialogNew(); |
|
61 |
NotificationManager.addNotificationListener(notificationDialogNew); |
|
62 |
} |
|
58 | 63 |
} |
59 | 64 |
|
60 |
/* (non-Javadoc)
|
|
61 |
* @see com.iver.andami.plugins.Extension#execute(java.lang.String)
|
|
62 |
*/
|
|
63 |
public void execute(String actionCommand) {
|
|
64 |
if( "show-console".equalsIgnoreCase(actionCommand) ) {
|
|
65 |
consolaFrame.setSize(400, 325);
|
|
66 |
consolaFrame.setVisible(true);
|
|
67 |
PluginServices.getMDIManager().addWindow(consolaFrame);
|
|
68 |
}
|
|
69 |
}
|
|
65 |
/* (non-Javadoc)
|
|
66 |
* @see com.iver.andami.plugins.Extension#execute(java.lang.String)
|
|
67 |
*/
|
|
68 |
public void execute(String actionCommand) {
|
|
69 |
if ( "show-console".equalsIgnoreCase(actionCommand) ) {
|
|
70 |
consolaFrame.setSize(400, 325);
|
|
71 |
consolaFrame.setVisible(true);
|
|
72 |
PluginServices.getMDIManager().addWindow(consolaFrame);
|
|
73 |
}
|
|
74 |
}
|
|
70 | 75 |
|
71 |
/* (non-Javadoc)
|
|
72 |
* @see com.iver.andami.plugins.Extension#isEnabled()
|
|
73 |
*/
|
|
74 |
public boolean isEnabled() {
|
|
75 |
return true;
|
|
76 |
}
|
|
76 |
/* (non-Javadoc)
|
|
77 |
* @see com.iver.andami.plugins.Extension#isEnabled()
|
|
78 |
*/
|
|
79 |
public boolean isEnabled() {
|
|
80 |
return true;
|
|
81 |
}
|
|
77 | 82 |
|
78 |
/* (non-Javadoc)
|
|
79 |
* @see com.iver.andami.plugins.Extension#isVisible()
|
|
80 |
*/
|
|
81 |
public boolean isVisible() {
|
|
82 |
return true;
|
|
83 |
}
|
|
83 |
/* (non-Javadoc)
|
|
84 |
* @see com.iver.andami.plugins.Extension#isVisible()
|
|
85 |
*/
|
|
86 |
public boolean isVisible() {
|
|
87 |
return true;
|
|
88 |
}
|
|
84 | 89 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.coreplugin.app/org.gvsig.coreplugin.app.mainplugin/src/main/java/org/gvsig/coreplugin/PreferencesExtension.java | ||
---|---|---|
44 | 44 |
import org.gvsig.coreplugin.preferences.general.GeneralPage; |
45 | 45 |
import org.gvsig.coreplugin.preferences.general.IconThemePage; |
46 | 46 |
import org.gvsig.coreplugin.preferences.general.LanguagePage; |
47 |
import org.gvsig.coreplugin.preferences.general.NotificationsPage; |
|
47 | 48 |
import org.gvsig.coreplugin.preferences.general.ScreenSettingsPage; |
48 | 49 |
import org.gvsig.coreplugin.preferences.general.SkinPreferences; |
49 | 50 |
import org.gvsig.coreplugin.preferences.network.FirewallPage; |
... | ... | |
153 | 154 |
ep.append("SkinPreferences", "", new SkinPreferences()); |
154 | 155 |
ep.append("IconThemePage", "", new IconThemePage()); |
155 | 156 |
|
157 |
ep.append("NotificationsPage", "", new NotificationsPage()); |
|
158 |
|
|
156 | 159 |
// this.extensionPoints.add("AplicationPreferences","GeneralPage", new GeneralPage()); |
157 | 160 |
// this.extensionPoints.add("AplicationPreferences","NetworkPage", new NetworkPage()); |
158 | 161 |
// this.extensionPoints.add("AplicationPreferences","FirewallPage", new FirewallPage()); |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.coreplugin.app/org.gvsig.coreplugin.app.mainplugin/src/main/resources-plugin/plugin-persistence.def | ||
---|---|---|
1 |
<?xml version="1.0"?> |
|
2 |
<!-- |
|
3 |
Definitions of plugin persistence org.gvsig.editing. |
|
4 |
--> |
|
5 |
<definitions> |
|
6 |
<version>1.0.0</version> |
|
7 |
<classes> |
|
8 |
<class name="org.gvsig.coreplugin.app.mainplugin"> |
|
9 |
<description>Persistence for the core plugin</description> |
|
10 |
<fields> |
|
11 |
|
|
12 |
<field name="showNotificationsInConsole" type="Boolean" defaultValue="false" mandatory="false"> |
|
13 |
<description></description> |
|
14 |
</field> |
|
15 |
<field name="showNotificationsInStatusbar" type="Boolean" defaultValue="true" mandatory="false"> |
|
16 |
<description></description> |
|
17 |
</field> |
|
18 |
|
|
19 |
</fields> |
|
20 |
</class> |
|
21 |
</classes> |
|
22 |
</definitions> |
Also available in: Unified diff