Revision 39468
tags/v2_0_0_Build_2061/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/buildNumber.properties | ||
---|---|---|
1 |
#maven.buildNumber.plugin properties file |
|
2 |
#Fri Dec 14 11:32:01 CET 2012 |
|
3 |
buildNumber=39 |
tags/v2_0_0_Build_2061/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/test/resources/log4j.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1" ?> |
|
2 |
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> |
|
3 |
|
|
4 |
<!-- |
|
5 |
Log4J configuration file for unit tests execution. |
|
6 |
--> |
|
7 |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> |
|
8 |
|
|
9 |
<!-- Appender configuration to show logging messages through the console --> |
|
10 |
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> |
|
11 |
<layout class="org.apache.log4j.PatternLayout"> |
|
12 |
<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n %m%n" /> |
|
13 |
</layout> |
|
14 |
</appender> |
|
15 |
|
|
16 |
<!-- |
|
17 |
Activate logging messages of DEBUG level of higher only for the |
|
18 |
org.gvsig.tools packages. |
|
19 |
You can put full classes names or packages instead, to configure |
|
20 |
logging for all the classes and subpackages of the package. |
|
21 |
--> |
|
22 |
<category name="org.gvsig.tools"> |
|
23 |
<priority value="DEBUG" /> |
|
24 |
</category> |
|
25 |
<category name="org.gvsig.app.document.table"> |
|
26 |
<priority value="DEBUG" /> |
|
27 |
</category> |
|
28 |
|
|
29 |
<!-- |
|
30 |
By default, show only logging messages of INFO level or higher, |
|
31 |
through the previously configured CONSOLE appender. |
|
32 |
--> |
|
33 |
<root> |
|
34 |
<priority value="INFO" /> |
|
35 |
<appender-ref ref="CONSOLE" /> |
|
36 |
</root> |
|
37 |
</log4j:configuration> |
tags/v2_0_0_Build_2061/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/test/resources/README.txt | ||
---|---|---|
1 |
Put into this folder the resources needed by your test classes. |
|
2 |
|
|
3 |
This folder is added to the Tests classpath, so you can load any resources |
|
4 |
through the ClassLoader. |
|
5 |
|
|
6 |
By default, in this folder you can find an example of log4j configuration, |
|
7 |
prepared to log messages through the console, so logging works when you |
|
8 |
run your tests classes. |
tags/v2_0_0_Build_2061/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/resources/text.properties | ||
---|---|---|
1 |
_Guardar=Guardar |
|
2 |
_Save_changes_performed=Guardar los cambios realizados. |
|
3 |
_Descartar=Descartar |
|
4 |
_Discard_and_lose_changes=Descartar y perder los cambios realizados. |
|
5 |
_Continuar=Continuar |
|
6 |
_Do_not_save_yet_Stay_in_editing_mode=No guardar a?n. Continuar en edici?n. |
|
7 |
_Attributes_table=Tabla de atributos |
|
8 |
_Show_attributes_table=Mostrar tabla de atributos |
|
9 |
_Cut_table=Cortar tabla |
|
10 |
_Cut_table_in_editing=Cortar tabla en edici?n |
|
11 |
_Print_table=Imprimir tabla |
|
12 |
_Start_editing=Comenzar edici?n |
|
13 |
_Stop_editing=Terminar edici?n |
|
14 |
_Create_link_between_tables=Enlazar tablas |
|
15 |
_Unable_to_rename_attribute=No se pudo renombrar el campo |
|
16 |
_Please_insert_new_field_name_Cannot_be_undone=Introduzca nuevo nombre de campo.\nAtenci?n: tras este cambio, se cerrar? la edici?n consolidando los cambios. |
|
17 |
_Create_link=Enlazar |
|
18 |
_Order_ascending=Ordenar ascendente |
|
19 |
_Order_descending=Ordenar descendente |
|
20 |
_Move_up=Mover arriba |
|
21 |
_Print=Imprimir |
|
22 |
Table=Tabla |
|
23 |
_Reverse=Invertir |
|
24 |
_Statistics=Estad?sticas |
|
25 |
_Cut=Cortar |
|
26 |
_Paste=Pegar |
|
27 |
_Rename_column=Renombrar columna |
|
28 |
_Add_column=A?adir columna |
|
29 |
_Remove_column=Eliminar columna |
|
30 |
_Add_row=A?adir fila |
|
31 |
_Remove_row=Eliminar fila |
|
32 |
_Remove_link=Eliminar enlace |
|
33 |
_Filter_table=Filtrar tabla |
|
34 |
_Filter=Filtrar |
|
35 |
_Clear_selection=Deseleccionar todo |
|
36 |
_Column_manager=Gestor de columnas |
|
37 |
_Move_up_selection=Mover arriba la selecci?n |
|
38 |
_Unable_to_rename_field=No se pudo renombrar el campo |
|
39 |
_These_sources_were_not_loaded=Estos tipos de or?genes de datos no fueron cargados |
|
40 |
_Load_error=Problemas en la carga |
|
41 |
|
tags/v2_0_0_Build_2061/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/resources/text_en.properties | ||
---|---|---|
1 |
_Guardar=Save |
|
2 |
_Save_changes_performed=Save edits performed in layer. |
|
3 |
_Descartar=Discard |
|
4 |
_Discard_and_lose_changes=Discard and lose edits performed. |
|
5 |
_Continuar=Continue |
|
6 |
_Do_not_save_yet_Stay_in_editing_mode=Do not save yet. Continue editing. |
|
7 |
_Attributes_table=Attributes table |
|
8 |
_Show_attributes_table=Show attributes table |
|
9 |
_Cut_table=Cut table |
|
10 |
_Cut_table_in_editing=Cut current table |
|
11 |
_Print_table=Print table |
|
12 |
_Start_editing=Start editing |
|
13 |
_Stop_editing=Stop editing |
|
14 |
_Create_link_between_tables=Create link between tables |
|
15 |
_Unable_to_rename_attribute=Unable to rename attribute |
|
16 |
_Please_insert_new_field_name_Cannot_be_undone=Please insert new field name.\nWarning: after this change, editing mode will be closed and changes will be consolidated. |
|
17 |
_Create_link=Create link |
|
18 |
_Order_ascending=Sort ascending |
|
19 |
_Order_descending=Sort descending |
|
20 |
_Move_up=Move up |
|
21 |
_Print=Print |
|
22 |
Table=Table |
|
23 |
_Reverse=Reverse |
|
24 |
_Statistics=Statistics |
|
25 |
_Cut=Cut |
|
26 |
_Paste=Paste |
|
27 |
_Rename_column=Rename column |
|
28 |
_Add_column=Add column |
|
29 |
_Remove_column=Remove column |
|
30 |
_Add_row=Add row |
|
31 |
_Remove_row=Remove row |
|
32 |
_Remove_link=Remove link |
|
33 |
_Filter_table=Filter table |
|
34 |
_Filter=Filter |
|
35 |
_Clear_selection=Clear selection |
|
36 |
_Column_manager=Column manager |
|
37 |
_Move_up_selection=Move up selection |
|
38 |
_Unable_to_rename_field=Unable to rename field |
|
39 |
_These_sources_were_not_loaded=These data source types were not loaded |
|
40 |
_Load_error=Loading error |
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
tags/v2_0_0_Build_2061/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/resources/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<libraries library-dir="lib"/> |
|
4 |
<depends plugin-name="org.gvsig.app" /> |
|
5 |
<resourceBundle name="text"/> |
|
6 |
<extensions> |
|
7 |
<extension class-name="org.gvsig.app.extension.TableExtension" |
|
8 |
description="Extensi?n encargada de a?adir soporte a documentos tabla." |
|
9 |
active="true" |
|
10 |
priority="10"> |
|
11 |
</extension> |
|
12 |
|
|
13 |
<extension class-name="org.gvsig.app.extension.ClearSelectionExtension" |
|
14 |
description="Extensi?n encargada de limpiar la selecci?n." |
|
15 |
active="true"> |
|
16 |
|
|
17 |
<action |
|
18 |
name="selection-clear-table" |
|
19 |
label="_Clear_selection" |
|
20 |
tooltip="_Clear_selection" |
|
21 |
position="300300000" |
|
22 |
action-command="selection-clear-table" |
|
23 |
icon="selection-clear" |
|
24 |
accelerator="" |
|
25 |
/> |
|
26 |
|
|
27 |
<menu |
|
28 |
name="selection-clear-table" |
|
29 |
text="Selection/_Clear" |
|
30 |
/> |
|
31 |
|
|
32 |
<tool-bar name="view_selection"> |
|
33 |
<action-tool |
|
34 |
name="selection-clear-table" |
|
35 |
/> |
|
36 |
</tool-bar> |
|
37 |
</extension> |
|
38 |
|
|
39 |
<extension class-name="org.gvsig.app.extension.ShowTable" |
|
40 |
description="Extensi?n encargada de abrir la tabla asociada a la capa seleccionado." |
|
41 |
active="true"> |
|
42 |
|
|
43 |
<action |
|
44 |
name="layer-show-attributes-table" |
|
45 |
label="_Attributes_table" |
|
46 |
tooltip="_Show_attributes_table" |
|
47 |
position="601200000" |
|
48 |
action-command="layer-show-attributes-table" |
|
49 |
icon="layer-show-attributes-table" |
|
50 |
accelerator="" |
|
51 |
/> |
|
52 |
|
|
53 |
<menu |
|
54 |
name="layer-show-attributes-table" |
|
55 |
text="Layer/_Show_attributes_table" |
|
56 |
/> |
|
57 |
|
|
58 |
<tool-bar name="view_actions"> |
|
59 |
<action-tool |
|
60 |
name="layer-show-attributes-table" |
|
61 |
/> |
|
62 |
</tool-bar> |
|
63 |
</extension> |
|
64 |
|
|
65 |
<extension class-name="org.gvsig.app.extension.TableOperations" |
|
66 |
description="Extensi?n encargada de gestionar las operaciones sobre las tablas." |
|
67 |
active="true"> |
|
68 |
|
|
69 |
<action |
|
70 |
name="table-create-link" |
|
71 |
label="_Create_link" |
|
72 |
tooltip="_Create_link_between_tables" |
|
73 |
position="501300000" |
|
74 |
action-command="table-create-link" |
|
75 |
icon="table-create-link" |
|
76 |
accelerator="" |
|
77 |
/> |
|
78 |
|
|
79 |
<menu |
|
80 |
name="table-create-link" |
|
81 |
text="Table/_Create_link" |
|
82 |
/> |
|
83 |
|
|
84 |
<tool-bar name="table_tools"> |
|
85 |
<action-tool |
|
86 |
name="table-create-link" |
|
87 |
/> |
|
88 |
</tool-bar> |
|
89 |
</extension> |
|
90 |
|
|
91 |
<extension class-name="org.gvsig.app.extension.RedoTableExtension" |
|
92 |
description="Extensi?n encargada de rehacer la edici?n sobre la capa activa." |
|
93 |
active="true"> |
|
94 |
|
|
95 |
<action |
|
96 |
name="edit-redo-table" |
|
97 |
label="_Redo" |
|
98 |
tooltip="_Redo" |
|
99 |
position="0200200000" |
|
100 |
action-command="edit-redo-table" |
|
101 |
icon="edit-redo" |
|
102 |
accelerator="" |
|
103 |
/> |
|
104 |
|
|
105 |
<menu |
|
106 |
name="edit-redo-table" |
|
107 |
text="Edit/_Redo" |
|
108 |
/> |
|
109 |
|
|
110 |
<tool-bar name="edit_actions"> |
|
111 |
<action-tool |
|
112 |
name="edit-redo-table" |
|
113 |
/> |
|
114 |
</tool-bar> |
|
115 |
</extension> |
|
116 |
|
|
117 |
<extension class-name="org.gvsig.app.extension.UndoTableExtension" |
|
118 |
description="Extensi?n encargada de dehacer la edici?n sobre la capa activa." |
|
119 |
active="true"> |
|
120 |
|
|
121 |
<action |
|
122 |
name="edit-undo-table" |
|
123 |
label="_Undo" |
|
124 |
tooltip="_Undo" |
|
125 |
position="0200100000" |
|
126 |
action-command="edit-undo-table" |
|
127 |
icon="edit-undo" |
|
128 |
accelerator="" |
|
129 |
/> |
|
130 |
|
|
131 |
<menu |
|
132 |
name="edit-undo-table" |
|
133 |
text="Edit/_Undo" |
|
134 |
/> |
|
135 |
|
|
136 |
<tool-bar name="edit_actions"> |
|
137 |
<action-tool |
|
138 |
name="edit-undo-table" |
|
139 |
/> |
|
140 |
</tool-bar> |
|
141 |
</extension> |
|
142 |
|
|
143 |
<extension class-name="org.gvsig.app.extension.TableEditStopExtension" |
|
144 |
description="Extensi?n encargada de gestionar las operaciones de edici?n sobre las tablas." |
|
145 |
active="true"> |
|
146 |
|
|
147 |
<action |
|
148 |
name="table-stop-editing" |
|
149 |
label="_Stop_editing" |
|
150 |
tooltip="_Stop_editing" |
|
151 |
position="500300000" |
|
152 |
action-command="table-stop-editing" |
|
153 |
icon="table-stop-editing" |
|
154 |
accelerator="" |
|
155 |
/> |
|
156 |
|
|
157 |
<menu |
|
158 |
name="table-stop-editing" |
|
159 |
text="Table/_Stop_editing" |
|
160 |
/> |
|
161 |
|
|
162 |
<tool-bar name="table_actions"> |
|
163 |
<action-tool |
|
164 |
name="table-stop-editing" |
|
165 |
/> |
|
166 |
</tool-bar> |
|
167 |
</extension> |
|
168 |
<extension class-name="org.gvsig.app.extension.TableEditStartExtension" |
|
169 |
description="Extensi?n encargada de gestionar las operaciones de edici?n sobre las tablas." |
|
170 |
active="true"> |
|
171 |
|
|
172 |
<action |
|
173 |
name="table-start-editing" |
|
174 |
label="_Start_editing" |
|
175 |
tooltip="_Start_editing" |
|
176 |
position="500200000" |
|
177 |
action-command="table-start-editing" |
|
178 |
icon="table-start-editing" |
|
179 |
accelerator="" |
|
180 |
/> |
|
181 |
|
|
182 |
<menu |
|
183 |
name="table-start-editing" |
|
184 |
text="Table/_Start_editing" |
|
185 |
/> |
|
186 |
|
|
187 |
<tool-bar name="table_actions"> |
|
188 |
<action-tool |
|
189 |
name="table-start-editing" |
|
190 |
/> |
|
191 |
</tool-bar> |
|
192 |
</extension> |
|
193 |
|
|
194 |
<extension class-name="org.gvsig.app.extension.TableEditInsertExtension" |
|
195 |
description="Extensi?n encargada de gestionar las operaciones de edici?n sobre las tablas." |
|
196 |
active="true"> |
|
197 |
<action |
|
198 |
name="table-add-row" |
|
199 |
label="_Add_row" |
|
200 |
tooltip="_Add_row" |
|
201 |
position="500500000" |
|
202 |
action-command="table-add-row" |
|
203 |
icon="table-add-row" |
|
204 |
accelerator="" |
|
205 |
/> |
|
206 |
|
|
207 |
<menu |
|
208 |
name="table-add-row" |
|
209 |
text="Table/_Add_row" |
|
210 |
/> |
|
211 |
|
|
212 |
<tool-bar name="table_actions"> |
|
213 |
<action-tool |
|
214 |
name="table-add-row" |
|
215 |
/> |
|
216 |
</tool-bar> |
|
217 |
</extension> |
|
218 |
|
|
219 |
<extension class-name="org.gvsig.app.extension.TableEditRemoveRowExtension" |
|
220 |
description="Extensi?n encargada de gestionar las operaciones de edici?n sobre las tablas." |
|
221 |
active="true"> |
|
222 |
|
|
223 |
<action |
|
224 |
name="table-remove-row" |
|
225 |
label="_Remove_row" |
|
226 |
tooltip="_Remove_row" |
|
227 |
position="500600000" |
|
228 |
action-command="table-remove-row" |
|
229 |
icon="table-remove-row" |
|
230 |
accelerator="" |
|
231 |
/> |
|
232 |
|
|
233 |
<menu |
|
234 |
name="table-remove-row" |
|
235 |
text="Table/_Remove_row" |
|
236 |
/> |
|
237 |
|
|
238 |
<tool-bar name="table_actions"> |
|
239 |
<action-tool |
|
240 |
name="table-remove-row" |
|
241 |
/> |
|
242 |
</tool-bar> |
|
243 |
</extension> |
|
244 |
<extension class-name="org.gvsig.app.extension.TableEditChangeColumnsExtension" |
|
245 |
description="Extensi?n encargada de gestionar las operaciones de edici?n de columnas sobre las tablas." |
|
246 |
active="true"> |
|
247 |
|
|
248 |
<action |
|
249 |
name="table-add-column" |
|
250 |
label="_Add_column" |
|
251 |
tooltip="_Add_column" |
|
252 |
position="500630000" |
|
253 |
action-command="table-add-column" |
|
254 |
icon="table-add-column" |
|
255 |
accelerator="" |
|
256 |
/> |
|
257 |
|
|
258 |
<action |
|
259 |
name="table-rename-column" |
|
260 |
label="_Rename_column" |
|
261 |
tooltip="_Rename_column" |
|
262 |
position="500650000" |
|
263 |
action-command="table-rename-column" |
|
264 |
icon="table-rename-column" |
|
265 |
accelerator="" |
|
266 |
/> |
|
267 |
|
|
268 |
<action |
|
269 |
name="table-remove-column" |
|
270 |
label="_Remove_column" |
|
271 |
tooltip="_Remove_column" |
|
272 |
position="500670000" |
|
273 |
action-command="table-remove-column" |
|
274 |
icon="table-remove-column" |
|
275 |
accelerator="" |
|
276 |
/> |
|
277 |
|
|
278 |
<menu |
|
279 |
name="table-add-column" |
|
280 |
text="Table/_Add_column" |
|
281 |
/> |
|
282 |
|
|
283 |
<menu |
|
284 |
name="table-remove-column" |
|
285 |
text="Table/_Remove_column" |
|
286 |
/> |
|
287 |
|
|
288 |
<menu |
|
289 |
name="table-rename-column" |
|
290 |
text="Table/_Rename_column" |
|
291 |
/> |
|
292 |
|
|
293 |
<tool-bar name="table_actions"> |
|
294 |
<action-tool |
|
295 |
name="table-add-column" |
|
296 |
/> |
|
297 |
<action-tool |
|
298 |
name="table-remove-column" |
|
299 |
/> |
|
300 |
<action-tool |
|
301 |
name="table-rename-column" |
|
302 |
/> |
|
303 |
</tool-bar> |
|
304 |
|
|
305 |
</extension> |
|
306 |
<extension class-name="org.gvsig.app.extension.TableEditAttributes" |
|
307 |
description="Extensi?n encargada de gestionar los campos de las tablas." |
|
308 |
active="true"> |
|
309 |
<action |
|
310 |
name="table-column-manager" |
|
311 |
label="_Column_manager" |
|
312 |
tooltip="_Column_manager" |
|
313 |
position="0500700000" |
|
314 |
action-command="table-column-manager" |
|
315 |
icon="table-column-manager" |
|
316 |
accelerator="" |
|
317 |
/> |
|
318 |
|
|
319 |
<menu |
|
320 |
name="table-column-manager" |
|
321 |
text="Table/_Column_manager" |
|
322 |
/> |
|
323 |
|
|
324 |
<tool-bar name="table_actions"> |
|
325 |
<action-tool |
|
326 |
name="table-column-manager" |
|
327 |
/> |
|
328 |
</tool-bar> |
|
329 |
</extension> |
|
330 |
|
|
331 |
<extension class-name="org.gvsig.app.extension.TableEditCopyExtension" |
|
332 |
description="Extensi?n encargada de gestionar las operaciones de edici?n sobre las tablas." |
|
333 |
active="true"> |
|
334 |
<action |
|
335 |
name="edit-copy-table" |
|
336 |
label="_Copy" |
|
337 |
tooltip="_Copy" |
|
338 |
position="200500000" |
|
339 |
action-command="edit-copy-table" |
|
340 |
icon="edit-copy" |
|
341 |
accelerator="" |
|
342 |
/> |
|
343 |
|
|
344 |
<menu |
|
345 |
name="edit-copy-table" |
|
346 |
text="Edit/_Copy" |
|
347 |
/> |
|
348 |
|
|
349 |
<tool-bar name="edit_actions"> |
|
350 |
<action-tool |
|
351 |
name="edit-copy-table" |
|
352 |
/> |
|
353 |
</tool-bar> |
|
354 |
</extension> |
|
355 |
|
|
356 |
<extension class-name="org.gvsig.app.extension.TableEditCutExtension" |
|
357 |
description="Extensi?n encargada de gestionar las operaciones de edici?n sobre las tablas." |
|
358 |
active="true"> |
|
359 |
<action |
|
360 |
name="edit-cut-table" |
|
361 |
label="_Cut_table" |
|
362 |
tooltip="_Cut_table_in_editing" |
|
363 |
position="200400000" |
|
364 |
action-command="edit-cut-table" |
|
365 |
icon="edit-cut" |
|
366 |
accelerator="" |
|
367 |
/> |
|
368 |
|
|
369 |
<menu |
|
370 |
name="edit-cut-table" |
|
371 |
text="Edit/_Cut" |
|
372 |
/> |
|
373 |
|
|
374 |
<tool-bar name="edit_actions"> |
|
375 |
<action-tool |
|
376 |
name="edit-cut-table" |
|
377 |
/> |
|
378 |
</tool-bar> |
|
379 |
</extension> |
|
380 |
|
|
381 |
<extension class-name="org.gvsig.app.extension.TableEditPasteExtension" |
|
382 |
description="Extensi?n encargada de gestionar las operaciones de edici?n sobre las tablas." |
|
383 |
active="true"> |
|
384 |
<action |
|
385 |
name="edit-paste-table" |
|
386 |
label="_Paste" |
|
387 |
tooltip="_Paste" |
|
388 |
position="200600000" |
|
389 |
action-command="edit-paste-table" |
|
390 |
icon="edit-paste" |
|
391 |
accelerator="" |
|
392 |
/> |
|
393 |
|
|
394 |
<menu |
|
395 |
name="edit-paste-table" |
|
396 |
text="Edit/_Paste" |
|
397 |
/> |
|
398 |
|
|
399 |
<tool-bar name="edit_actions"> |
|
400 |
<action-tool |
|
401 |
name="edit-paste-table" |
|
402 |
/> |
|
403 |
</tool-bar> |
|
404 |
</extension> |
|
405 |
|
|
406 |
<extension active="true" class-name="org.gvsig.app.extension.TableFieldOperations" |
|
407 |
description="Operaciones sobre los campos de las tablas"> |
|
408 |
<action |
|
409 |
name="table-order-asc" |
|
410 |
label="_Order_ascending" |
|
411 |
tooltip="_Order_ascending" |
|
412 |
position="500900000" |
|
413 |
action-command="table-order-asc" |
|
414 |
icon="table-order-asc" |
|
415 |
accelerator="" |
|
416 |
/> |
|
417 |
|
|
418 |
<action |
|
419 |
name="table-order-desc" |
|
420 |
label="_Order_descending" |
|
421 |
tooltip="_Order_descending" |
|
422 |
position="501000000" |
|
423 |
action-command="table-order-desc" |
|
424 |
icon="table-order-desc" |
|
425 |
accelerator="" |
|
426 |
/> |
|
427 |
|
|
428 |
<menu |
|
429 |
name="table-order-asc" |
|
430 |
text="Table/_Order_ascending" |
|
431 |
/> |
|
432 |
|
|
433 |
<menu |
|
434 |
name="table-order-desc" |
|
435 |
text="Table/_Order_descending" |
|
436 |
/> |
|
437 |
|
|
438 |
<tool-bar name="table_actions"> |
|
439 |
<action-tool |
|
440 |
name="table-order-asc" |
|
441 |
/> |
|
442 |
<action-tool |
|
443 |
name="table-order-desc" |
|
444 |
/> |
|
445 |
</tool-bar> |
|
446 |
</extension> |
|
447 |
|
|
448 |
<extension class-name="org.gvsig.app.extension.TableNumericFieldOperations" |
|
449 |
description="Extensi?n encargada de gestionar las operaciones sobre los campos num?ricos." |
|
450 |
active="true"> |
|
451 |
<action |
|
452 |
name="table-statistics" |
|
453 |
label="_Statistics" |
|
454 |
tooltip="_Statistics" |
|
455 |
position="508000000" |
|
456 |
action-command="table-statistics" |
|
457 |
icon="table-statistics" |
|
458 |
accelerator="" |
|
459 |
/> |
|
460 |
|
|
461 |
<menu |
|
462 |
name="table-statistics" |
|
463 |
text="Table/_Statistics" |
|
464 |
/> |
|
465 |
|
|
466 |
<tool-bar name="table_actions"> |
|
467 |
<action-tool |
|
468 |
name="table-statistics" |
|
469 |
/> |
|
470 |
</tool-bar> |
|
471 |
</extension> |
|
472 |
|
|
473 |
<extension class-name="org.gvsig.app.extension.TableRowsOperations" |
|
474 |
description="Extensi?n encargada de gestionar la selecci?n en la tabla." |
|
475 |
active="true"> |
|
476 |
<action |
|
477 |
name="selection-move-up" |
|
478 |
label="_Move_up_selection" |
|
479 |
tooltip="_Move_up_selection" |
|
480 |
position="300600000" |
|
481 |
action-command="selection-move-up" |
|
482 |
icon="selection-move-up" |
|
483 |
accelerator="" |
|
484 |
/> |
|
485 |
|
|
486 |
<action |
|
487 |
name="selection-reverse" |
|
488 |
label="_Reverse_selection" |
|
489 |
tooltip="_Reverse_selection" |
|
490 |
position="300500000" |
|
491 |
action-command="selection-reverse" |
|
492 |
icon="selection-reverse" |
|
493 |
accelerator="" |
|
494 |
/> |
|
495 |
|
|
496 |
<menu |
|
497 |
name="selection-move-up" |
|
498 |
text="Selection/_Move_up" |
|
499 |
/> |
|
500 |
|
|
501 |
<menu |
|
502 |
name="selection-reverse" |
|
503 |
text="Selection/_Reverse" |
|
504 |
/> |
|
505 |
|
|
506 |
<tool-bar name="selection_actions"> |
|
507 |
<action-tool |
|
508 |
name="selection-move-up" |
|
509 |
/> |
|
510 |
<action-tool |
|
511 |
name="selection-reverse" |
|
512 |
/> |
|
513 |
</tool-bar> |
|
514 |
</extension> |
|
515 |
|
|
516 |
<extension class-name="org.gvsig.app.extension.RemoveTableLink" |
|
517 |
description="Extensi?n encargada de quitar los enlaces de las tablas." |
|
518 |
active="true"> |
|
519 |
<action |
|
520 |
name="table-remove-link" |
|
521 |
label="_Remove_link" |
|
522 |
tooltip="_Remove_link" |
|
523 |
position="501400000" |
|
524 |
action-command="table-remove-link" |
|
525 |
icon="table-remove-link" |
|
526 |
accelerator="" |
|
527 |
/> |
|
528 |
|
|
529 |
<menu |
|
530 |
name="table-remove-link" |
|
531 |
text="Table/_Remove_link" |
|
532 |
/> |
|
533 |
|
|
534 |
<tool-bar name="table_actions"> |
|
535 |
<action-tool |
|
536 |
name="table-remove-link" |
|
537 |
/> |
|
538 |
</tool-bar> |
|
539 |
</extension> |
|
540 |
|
|
541 |
<extension class-name="org.gvsig.app.extension.PrintTable" |
|
542 |
description="Extensi?n encargada de la impresi?n de las tablas." |
|
543 |
active="true"> |
|
544 |
<action |
|
545 |
name="application-print-table" |
|
546 |
label="_Print_table" |
|
547 |
tooltip="_Print_table" |
|
548 |
position="100800000" |
|
549 |
action-command="application-print-table" |
|
550 |
icon="document-print" |
|
551 |
accelerator="" |
|
552 |
/> |
|
553 |
|
|
554 |
<menu |
|
555 |
name="application-print-table" |
|
556 |
text="File/_Print" |
|
557 |
/> |
|
558 |
|
|
559 |
<tool-bar name="table_actions"> |
|
560 |
<action-tool |
|
561 |
name="application-print-table" |
|
562 |
/> |
|
563 |
</tool-bar> |
|
564 |
</extension> |
|
565 |
|
|
566 |
<extension class-name="org.gvsig.app.extension.ZoomToSelectExtension" |
|
567 |
description="Extensi?n encargada de gestionar los eventos realizados sobre una capa." |
|
568 |
active="true"> |
|
569 |
<action |
|
570 |
name="view-navigation-zoom-to-selection-table" |
|
571 |
label="Zoom_to_selection" |
|
572 |
tooltip="Zoom_to_selection" |
|
573 |
position="650100900" |
|
574 |
action-command="view-navigation-zoom-to-selection-table" |
|
575 |
icon="view-navigation-zoom-to-selection" |
|
576 |
accelerator="" |
|
577 |
/> |
|
578 |
|
|
579 |
<menu |
|
580 |
name="view-navigation-zoom-to-selection-table" |
|
581 |
text="View/Navigation/Zoom_to_selection" |
|
582 |
/> |
|
583 |
|
|
584 |
<tool-bar name="view_navigation"> |
|
585 |
<action-tool |
|
586 |
name="view-navigation-zoom-to-selection-table" |
|
587 |
/> |
|
588 |
</tool-bar> |
|
589 |
</extension> |
|
590 |
|
|
591 |
<extension class-name="org.gvsig.app.extension.FiltroExtension" |
|
592 |
description="Extensi?n encargada de abrir el di?logo para filtrar una tabla." |
|
593 |
active="true"> |
|
594 |
<action |
|
595 |
name="table-filter" |
|
596 |
label="_Filter" |
|
597 |
tooltip="_Filter_table" |
|
598 |
position="500100000" |
|
599 |
action-command="table-filter" |
|
600 |
icon="table-filter" |
|
601 |
accelerator="" |
|
602 |
/> |
|
603 |
|
|
604 |
<menu |
|
605 |
name="table-filter" |
|
606 |
text="Table/_Filter" |
|
607 |
/> |
|
608 |
|
|
609 |
<tool-bar name="table_actions"> |
|
610 |
<action-tool |
|
611 |
name="table-filter" |
|
612 |
/> |
|
613 |
</tool-bar> |
|
614 |
</extension> |
|
615 |
|
|
616 |
</extensions> |
|
617 |
<icon src="gvsig-logo-icon" text="gvSIG"/> |
|
618 |
</plugin-config> |
tags/v2_0_0_Build_2061/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/fmap/dal/serverexplorer/filesystem/swing/FilesystemExplorerTableWizardPanel.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2008 IVER T.I. S.A. {{Task}} |
|
26 |
*/ |
|
27 |
|
|
28 |
package org.gvsig.fmap.dal.serverexplorer.filesystem.swing; |
|
29 |
|
|
30 |
import java.awt.Window; |
|
31 |
import java.util.ArrayList; |
|
32 |
import java.util.HashSet; |
|
33 |
import java.util.List; |
|
34 |
import java.util.Set; |
|
35 |
|
|
36 |
import javax.swing.JOptionPane; |
|
37 |
|
|
38 |
import org.cresques.cts.IProjection; |
|
39 |
import org.slf4j.Logger; |
|
40 |
import org.slf4j.LoggerFactory; |
|
41 |
|
|
42 |
import org.gvsig.andami.PluginServices; |
|
43 |
import org.gvsig.andami.messages.NotificationManager; |
|
44 |
import org.gvsig.app.ApplicationLocator; |
|
45 |
import org.gvsig.app.ApplicationManager; |
|
46 |
import org.gvsig.app.prepareAction.PrepareContext; |
|
47 |
import org.gvsig.app.project.Project; |
|
48 |
import org.gvsig.app.project.ProjectManager; |
|
49 |
import org.gvsig.app.project.documents.table.TableDocument; |
|
50 |
import org.gvsig.app.project.documents.table.TableManager; |
|
51 |
import org.gvsig.fmap.dal.DALLocator; |
|
52 |
import org.gvsig.fmap.dal.DataManager; |
|
53 |
import org.gvsig.fmap.dal.DataStoreParameters; |
|
54 |
import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
|
55 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
|
56 |
import org.gvsig.i18n.Messages; |
|
57 |
|
|
58 |
public class FilesystemExplorerTableWizardPanel extends |
|
59 |
FilesystemExplorerWizardPanel { |
|
60 |
|
|
61 |
private static final long serialVersionUID = 8469934188826417698L; |
|
62 |
private static final Logger LOG = LoggerFactory.getLogger( |
|
63 |
FilesystemExplorerTableWizardPanel.class); |
|
64 |
|
|
65 |
private PrepareContext prepareDSContext = null; |
|
66 |
|
|
67 |
@Override |
|
68 |
public void execute() { |
|
69 |
executeWizard(); |
|
70 |
} |
|
71 |
|
|
72 |
public Object executeWizard() { |
|
73 |
FeatureStore store; |
|
74 |
TableDocument table; |
|
75 |
|
|
76 |
ApplicationManager manager = ApplicationLocator.getManager(); |
|
77 |
Project project = manager.getCurrentProject(); |
|
78 |
|
|
79 |
PrepareContext context = this.getPrepareDataStoreContext(); |
|
80 |
DataStoreParameters[] parameters = this.getParameters(); |
|
81 |
List<TableDocument> tabledocs = |
|
82 |
new ArrayList<TableDocument>(parameters.length); |
|
83 |
|
|
84 |
Set<String> not_valid = new HashSet<String>(); |
|
85 |
|
|
86 |
for (DataStoreParameters params : parameters) { |
|
87 |
store = null; |
|
88 |
|
|
89 |
/* |
|
90 |
* Try to validate. |
|
91 |
*/ |
|
92 |
try { |
|
93 |
params.validate(); |
|
94 |
} catch (ValidateDataParametersException ecx) { |
|
95 |
LOG.info("Unable to validate params: " + params.getDataStoreName()); |
|
96 |
not_valid.add(params.getDataStoreName()); |
|
97 |
continue; |
|
98 |
} |
|
99 |
|
|
100 |
try { |
|
101 |
|
|
102 |
DataManager dataManager = DALLocator.getDataManager(); |
|
103 |
store = |
|
104 |
(FeatureStore) dataManager.openStore( |
|
105 |
params.getDataStoreName(), params); |
|
106 |
manager.pepareOpenDataSource(store, context); |
|
107 |
|
|
108 |
table = |
|
109 |
(TableDocument) ProjectManager.getInstance() |
|
110 |
.createDocument(TableManager.TYPENAME); |
|
111 |
table.setName(store.getName()); |
|
112 |
table.setStore(store); |
|
113 |
|
|
114 |
// project.add(table); |
|
115 |
tabledocs.add(table); |
|
116 |
} catch (Exception e) { |
|
117 |
if (store != null) { |
|
118 |
store.dispose(); |
|
119 |
} |
|
120 |
NotificationManager.addError(e); |
|
121 |
} |
|
122 |
|
|
123 |
} |
|
124 |
|
|
125 |
if (not_valid.size() > 0) { |
|
126 |
String not_str = not_valid.toString(); |
|
127 |
JOptionPane.showMessageDialog( |
|
128 |
this, |
|
129 |
Messages.getText("_These_sources_were_not_loaded") |
|
130 |
+ ": " + not_str, // not_valid, |
|
131 |
Messages.getText("_Load_error"), |
|
132 |
JOptionPane.WARNING_MESSAGE); |
|
133 |
} |
|
134 |
return tabledocs; |
|
135 |
} |
|
136 |
|
|
137 |
@Override |
|
138 |
protected PrepareContext getPrepareDataStoreContext() { |
|
139 |
if (this.prepareDSContext == null) { |
|
140 |
this.prepareDSContext = new PrepareContext() { |
|
141 |
|
|
142 |
public Window getOwnerWindow() { |
|
143 |
return null; |
|
144 |
} |
|
145 |
|
|
146 |
public IProjection getViewProjection() { |
|
147 |
return null; |
|
148 |
} |
|
149 |
|
|
150 |
}; |
|
151 |
} |
|
152 |
return this.prepareDSContext; |
|
153 |
} |
|
154 |
|
|
155 |
public String getTabName() { |
|
156 |
return PluginServices.getText(this, "File"); |
|
157 |
} |
|
158 |
|
|
159 |
} |
tags/v2_0_0_Build_2061/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/fmap/dal/serverexplorer/filesystem/swing/package.html | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8" ?> |
|
2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
4 |
<head> |
|
5 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
6 |
<title>org.gvsig.landregistryviewer package documentation</title> |
|
7 |
</head> |
|
8 |
<body> |
|
9 |
|
|
10 |
<p>Open table document from file support</p> |
|
11 |
|
|
12 |
</body> |
|
13 |
</html> |
tags/v2_0_0_Build_2061/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/extension/RedoTableExtension.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
package org.gvsig.app.extension; |
|
23 |
|
|
24 |
import org.gvsig.andami.PluginServices; |
|
25 |
import org.gvsig.andami.messages.NotificationManager; |
|
26 |
import org.gvsig.andami.plugins.Extension; |
|
27 |
import org.gvsig.app.project.documents.table.gui.FeatureTableDocumentPanel; |
|
28 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
|
29 |
import org.gvsig.tools.undo.RedoException; |
|
30 |
|
|
31 |
/** |
|
32 |
* Extensi?n encargada de gestionar el rehacer un comando anteriormente |
|
33 |
* deshecho. |
|
34 |
* |
|
35 |
* @author Vicente Caballero Navarro |
|
36 |
*/ |
|
37 |
public class RedoTableExtension extends Extension { |
|
38 |
|
|
39 |
/** |
|
40 |
* @see org.gvsig.andami.plugins.IExtension#initialize() |
|
41 |
*/ |
|
42 |
public void initialize() { |
|
43 |
} |
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
/** |
|
48 |
* @see org.gvsig.andami.plugins.IExtension#execute(java.lang.String) |
|
49 |
*/ |
|
50 |
public void execute(String s) { |
|
51 |
FeatureTableDocumentPanel tabla = |
|
52 |
(FeatureTableDocumentPanel) PluginServices.getMDIManager() |
|
53 |
.getActiveWindow(); |
|
54 |
|
|
55 |
if ( "edit-redo-table".equalsIgnoreCase(s)) { |
|
56 |
if (tabla.getModel().getStore().isEditing()) { |
|
57 |
FeatureStore fs = tabla.getModel().getStore(); |
|
58 |
try { |
|
59 |
fs.redo(); |
|
60 |
} catch (RedoException e) { |
|
61 |
NotificationManager.addError(e); |
|
62 |
} |
|
63 |
} |
|
64 |
tabla.getModel().setModified(true); |
|
65 |
} |
|
66 |
} |
|
67 |
|
|
68 |
/** |
|
69 |
* @see org.gvsig.andami.plugins.IExtension#isEnabled() |
|
70 |
*/ |
|
71 |
public boolean isEnabled() { |
|
72 |
FeatureTableDocumentPanel tabla = |
|
73 |
(FeatureTableDocumentPanel) PluginServices.getMDIManager() |
|
74 |
.getActiveWindow(); |
|
75 |
FeatureStore fs = tabla.getModel().getStore(); |
|
76 |
if (fs != null && fs.isEditing()) { |
|
77 |
return fs.canRedo(); |
|
78 |
} |
|
79 |
return false; |
|
80 |
} |
|
81 |
|
|
82 |
/** |
|
83 |
* @see org.gvsig.andami.plugins.IExtension#isVisible() |
|
84 |
*/ |
|
85 |
public boolean isVisible() { |
|
86 |
org.gvsig.andami.ui.mdiManager.IWindow f = |
|
87 |
PluginServices.getMDIManager().getActiveWindow(); |
|
88 |
|
|
89 |
if (f == null) { |
|
90 |
return false; |
|
91 |
} |
|
92 |
|
|
93 |
if (f instanceof FeatureTableDocumentPanel) { |
|
94 |
return true; |
|
95 |
} else { |
|
96 |
return false; |
|
97 |
} |
|
98 |
} |
|
99 |
} |
tags/v2_0_0_Build_2061/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/extension/TableFieldOperations.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
package org.gvsig.app.extension; |
|
23 |
|
|
24 |
import org.gvsig.andami.IconThemeHelper; |
|
25 |
import org.gvsig.andami.PluginServices; |
|
26 |
import org.gvsig.andami.plugins.Extension; |
|
27 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
28 |
import org.gvsig.app.project.documents.table.gui.FeatureTableDocumentPanel; |
|
29 |
import org.gvsig.fmap.dal.exception.DataException; |
|
30 |
import org.gvsig.fmap.mapcontrol.dal.feature.swing.table.ConfigurableFeatureTableModel; |
|
31 |
import org.gvsig.tools.exception.BaseException; |
|
32 |
|
|
33 |
/** |
|
34 |
* Ascending or descending order operations. |
|
35 |
* |
|
36 |
* @author Vicente Caballero Navarro |
|
37 |
*/ |
|
38 |
public class TableFieldOperations extends Extension { |
|
39 |
|
|
40 |
private FeatureTableDocumentPanel table = null; |
|
41 |
|
|
42 |
/** |
|
43 |
* @see org.gvsig.andami.plugins.IExtension#initialize() |
|
44 |
*/ |
|
45 |
public void initialize() { |
|
46 |
IconThemeHelper.registerIcon("action", "table-order-desc", this); |
|
47 |
IconThemeHelper.registerIcon("action", "table-order-asc", this); |
|
48 |
} |
|
49 |
|
|
50 |
/** |
|
51 |
* @see org.gvsig.andami.plugins.IExtension#execute(java.lang.String) |
|
52 |
*/ |
|
53 |
public void execute(String actionCommand) { |
|
54 |
doExecute(actionCommand, table); |
|
55 |
table.getModel().setModified(true); |
|
56 |
} |
|
57 |
|
|
58 |
/** |
|
59 |
* "execute" method acction |
|
60 |
* |
|
61 |
* @param actionCommand |
|
62 |
* The acction command that executes this method |
|
63 |
* @param table |
|
64 |
* Table to operate |
|
65 |
*/ |
|
66 |
protected void doExecute(String actionCommand, |
|
67 |
FeatureTableDocumentPanel table) { |
|
68 |
// FIXME |
|
69 |
ConfigurableFeatureTableModel cftm = |
|
70 |
table.getTablePanel().getTableModel(); |
|
71 |
try { |
|
72 |
if ("table-order-asc".equals(actionCommand)) { |
|
73 |
cftm.orderByColumn(table.getTablePanel().getTable() |
|
74 |
.getSelectedColumnsAttributeDescriptor()[0].getName(), true); |
|
75 |
} else |
|
76 |
if ("table-order-desc".equals(actionCommand)) { |
|
77 |
cftm.orderByColumn(table.getTablePanel().getTable() |
|
78 |
.getSelectedColumnsAttributeDescriptor()[0].getName(), |
|
79 |
false); |
|
80 |
} |
|
81 |
} catch (BaseException e) { |
|
82 |
e.printStackTrace(); |
|
83 |
} |
|
84 |
} |
|
85 |
|
|
86 |
/** |
|
87 |
* @see org.gvsig.andami.plugins.IExtension#isEnabled() |
|
88 |
*/ |
|
89 |
public boolean isEnabled() { |
|
90 |
try { |
|
91 |
return (table.getTablePanel().getTable().getSelectedColumnCount() == 1); |
|
92 |
} catch (DataException e) { |
|
93 |
e.printStackTrace(); |
|
94 |
} |
|
95 |
return false; |
|
96 |
} |
|
97 |
|
|
98 |
/** |
|
99 |
* @see org.gvsig.andami.plugins.IExtension#isVisible() |
|
100 |
*/ |
|
101 |
public boolean isVisible() { |
|
102 |
IWindow v = PluginServices.getMDIManager().getActiveWindow(); |
|
103 |
if (v != null && v instanceof FeatureTableDocumentPanel) { |
|
104 |
table = (FeatureTableDocumentPanel) v; |
|
105 |
return true; |
|
106 |
} |
|
107 |
return false; |
|
108 |
} |
|
109 |
|
|
110 |
} |
tags/v2_0_0_Build_2061/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/extension/TableEditStopExtension.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
package org.gvsig.app.extension; |
|
23 |
|
|
24 |
import java.awt.BorderLayout; |
|
25 |
import java.awt.Component; |
|
26 |
import java.awt.Font; |
|
27 |
import java.awt.GridBagConstraints; |
|
28 |
import java.awt.GridBagLayout; |
|
29 |
import java.awt.Insets; |
|
30 |
import java.util.ArrayList; |
|
31 |
import java.util.List; |
|
32 |
|
|
33 |
import javax.swing.JLabel; |
|
34 |
import javax.swing.JOptionPane; |
|
35 |
import javax.swing.JPanel; |
|
36 |
|
|
37 |
import org.slf4j.Logger; |
|
38 |
import org.slf4j.LoggerFactory; |
|
39 |
|
|
40 |
import org.gvsig.andami.IconThemeHelper; |
|
41 |
import org.gvsig.andami.PluginServices; |
|
42 |
import org.gvsig.andami.messages.NotificationManager; |
|
43 |
import org.gvsig.andami.plugins.IExtension; |
|
44 |
import org.gvsig.andami.plugins.status.IExtensionStatus; |
|
45 |
import org.gvsig.andami.plugins.status.IUnsavedData; |
|
46 |
import org.gvsig.andami.plugins.status.UnsavedData; |
|
47 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
48 |
import org.gvsig.app.ApplicationLocator; |
|
49 |
import org.gvsig.app.project.Project; |
|
50 |
import org.gvsig.app.project.ProjectManager; |
|
51 |
import org.gvsig.app.project.documents.Document; |
|
52 |
import org.gvsig.app.project.documents.table.TableDocument; |
|
53 |
import org.gvsig.app.project.documents.table.TableManager; |
|
54 |
import org.gvsig.app.project.documents.table.gui.FeatureTableDocumentPanel; |
|
55 |
import org.gvsig.fmap.dal.exception.DataException; |
|
56 |
import org.gvsig.fmap.dal.exception.ReadException; |
|
57 |
import org.gvsig.fmap.dal.exception.WriteException; |
|
58 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
|
59 |
import org.gvsig.gui.beans.Messages; |
|
60 |
import org.gvsig.utils.swing.threads.IMonitorableTask; |
|
61 |
|
|
62 |
public class TableEditStopExtension extends AbstractTableEditExtension { |
|
63 |
|
|
64 |
private static Logger logger = |
|
65 |
LoggerFactory.getLogger(TableEditStopExtension.class); |
|
66 |
|
|
67 |
public void initialize() { |
|
68 |
super.initialize(); |
|
69 |
IconThemeHelper.registerIcon("action", "table-stop-editing", this); |
|
70 |
} |
|
71 |
|
|
72 |
public void execute(String actionCommand) { |
|
73 |
if ("table-stop-editing".equals(actionCommand)) { |
|
74 |
stopEditing(table); |
|
75 |
ApplicationLocator.getManager().refreshMenusAndToolBars(); |
|
76 |
} |
|
77 |
} |
|
78 |
|
|
79 |
private void stopEditing(FeatureTableDocumentPanel table) { |
|
80 |
|
Also available in: Unified diff