Revision 39322

View differences:

tags/v2_0_0_Build_2059/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/pom.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
	<modelVersion>4.0.0</modelVersion>
5
	<packaging>jar</packaging>
6
	<artifactId>org.gvsig.app.document.table.app.mainplugin</artifactId>
7
	<name>Document: Table</name>
8
	<description>Adds a table document type which shows information data sources with Features or from an already open View document. Also allows editing on data sources that allow so.</description>	
9
	<parent>
10
		<groupId>org.gvsig</groupId>
11
		<artifactId>org.gvsig.app.document.table.app</artifactId>
12
		<version>2.0.0-SNAPSHOT</version>
13
	</parent>
14
    <dependencies>
15
        <dependency>
16
            <groupId>org.gvsig</groupId>
17
            <artifactId>org.gvsig.core.maven.dependencies</artifactId>
18
            <version>2.0.1-SNAPSHOT</version>
19
            <type>pom</type>
20
            <scope>test</scope>
21
        </dependency>
22
        <dependency>
23
            <groupId>org.gvsig</groupId>
24
            <artifactId>org.gvsig.tools.lib</artifactId>
25
            <scope>compile</scope>
26
        </dependency>
27
        <dependency>
28
            <groupId>org.gvsig</groupId>
29
            <artifactId>org.gvsig.tools.swing.api</artifactId>
30
            <scope>compile</scope>
31
        </dependency>
32
        <dependency>
33
            <groupId>org.gvsig</groupId>
34
            <artifactId>org.gvsig.app</artifactId>
35
            <scope>compile</scope>
36
        </dependency>
37
        <dependency>
38
            <groupId>org.gvsig</groupId>
39
            <artifactId>org.gvsig.andami</artifactId>
40
            <scope>compile</scope>
41
        </dependency>
42
        <dependency>
43
            <groupId>org.gvsig</groupId>
44
            <artifactId>org.gvsig.fmap.dal</artifactId>
45
            <scope>compile</scope>
46
        </dependency>
47
        <dependency>
48
            <groupId>org.gvsig</groupId>
49
            <artifactId>org.gvsig.fmap.dal.file</artifactId>
50
            <scope>compile</scope>
51
        </dependency>
52
        <dependency>
53
            <groupId>org.gvsig</groupId>
54
            <artifactId>org.gvsig.fmap.control</artifactId>
55
            <scope>compile</scope>
56
        </dependency>
57
        <dependency>
58
            <groupId>org.gvsig</groupId>
59
            <artifactId>org.gvsig.fmap.mapcontext</artifactId>
60
            <scope>compile</scope>
61
        </dependency>
62
        <dependency>
63
            <groupId>org.gvsig</groupId>
64
            <artifactId>org.gvsig.utils</artifactId>
65
            <scope>compile</scope>
66
        </dependency>
67
        <dependency>
68
            <groupId>org.gvsig</groupId>
69
            <artifactId>org.gvsig.ui</artifactId>
70
            <scope>compile</scope>
71
        </dependency>
72
        <dependency>
73
            <groupId>org.gvsig</groupId>
74
            <artifactId>org.gvsig.projection</artifactId>
75
            <scope>compile</scope>
76
        </dependency>
77
        <dependency>
78
            <groupId>org.gvsig</groupId>
79
            <artifactId>org.gvsig.fmap.geometry</artifactId>
80
            <scope>compile</scope>
81
        </dependency>
82
        <dependency>
83
            <groupId>org.gvsig</groupId>
84
            <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
85
            <scope>compile</scope>
86
        </dependency>
87
        <dependency>
88
            <groupId>org.gvsig</groupId>
89
            <artifactId>org.gvsig.timesupport.lib.api</artifactId>
90
            <scope>compile</scope>
91
        </dependency>
92
        
93
        <dependency>
94
            <groupId>org.gvsig</groupId>
95
            <artifactId>org.gvsig.i18n</artifactId>
96
            <scope>compile</scope>
97
        </dependency>   
98
    </dependencies>
99
	<profiles>
100
		<profile>
101
			<id>gvsig-install</id>
102
			<activation>
103
				<activeByDefault>true</activeByDefault>
104
			</activation>
105
			<properties>
106
				<!--
107
					Default gvSIG installation folder relative to the current workspace
108
				-->
109
				<gvsig.install.dir>${basedir}/../../build/product</gvsig.install.dir>
110
			</properties>
111
		</profile>
112
	</profiles>
113
    <properties>
114
        <package.info.dependencies>required: org.gvsig.app -ge 2.0-2036</package.info.dependencies>
115
        <package.info.categories>Table</package.info.categories>
116
    </properties>
117
</project>
tags/v2_0_0_Build_2059/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/distribution/distribution.xml
1
<assembly>
2
	<id>distribution</id>
3
	<formats>
4
		<format>dir</format>
5
	</formats>
6
	<fileSets>
7
		<!-- Estructure for the extension -->
8
		<fileSet>
9
			<directory>src/main/resources</directory>
10
			<outputDirectory>${extension.install.dir.name}
11
			</outputDirectory>
12
		</fileSet>
13
	</fileSets>
14
    <files>
15
        <file>
16
            <source>package.info</source>
17
            <outputDirectory>${extension.install.dir.name}</outputDirectory>
18
        </file>
19
    </files>
20
	<dependencySets>
21
		<dependencySet>
22
			<outputDirectory>${extension.install.dir.name}/${library-dir}
23
			</outputDirectory>
24
			<includes>
25
				<include>org.gvsig:org.gvsig.app.document.table.app.mainplugin</include>
26
			</includes>
27
		</dependencySet>
28
	</dependencySets>
29
</assembly>
tags/v2_0_0_Build_2059/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/buildNumber.properties
1
#maven.buildNumber.plugin properties file
2
#Wed Nov 21 14:03:44 CET 2012
3
buildNumber=37
tags/v2_0_0_Build_2059/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_2059/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_2059/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_2059/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_2059/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_2059/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/TableSelectionModel.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.project.documents.table;
23

  
24
import org.gvsig.utils.swing.objectSelection.ObjectSelectionModel;
25

  
26
/**
27
 * @author Fernando Gonz?lez Cort?s
28
 */
29
public class TableSelectionModel implements ObjectSelectionModel {
30

  
31
    private TableDocument[] tables;
32
    private String msg;
33

  
34
    public TableSelectionModel(TableDocument[] tables, String msg) {
35
        this.tables = tables;
36
        this.msg = msg;
37
    }
38

  
39
    /**
40
     * @see org.gvsig.app.project.documents.table.TableSelectionModel#getTables()
41
     */
42
    public Object[] getObjects() {
43
        return tables;
44
    }
45

  
46
    /**
47
     * @see org.gvsig.utils.swing.objectSelection.ObjectSelectionModel#getMsg()
48
     */
49
    public String getMsg() {
50
        return msg;
51
    }
52

  
53
}
tags/v2_0_0_Build_2059/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/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>Table document support</p>
11

  
12
</body>
13
</html>
tags/v2_0_0_Build_2059/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/exceptions/StartEditingTableException.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.project.documents.table.exceptions;
23

  
24
/**
25
 * @author Vicente Caballero Navarro
26
 */
27
public class StartEditingTableException extends TableEditingException {
28

  
29
    /**
30
	 * 
31
	 */
32
    private static final long serialVersionUID = 8031152738000164873L;
33

  
34
    public StartEditingTableException(String table, Throwable exception) {
35
        super(table, exception);
36
        init();
37
        initCause(exception);
38
    }
39

  
40
    private void init() {
41
        messageKey = "error_start_editing_table";
42
        formatString = "Can�t start editing the table: %(table) ";
43
    }
44

  
45
}
tags/v2_0_0_Build_2059/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/exceptions/TableEditingException.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.project.documents.table.exceptions;
23

  
24
import org.gvsig.tools.exception.BaseException;
25

  
26
/**
27
 * @author gvSIG Team
28
 * @version $Id$
29
 */
30
public class TableEditingException extends BaseException {
31

  
32
    private static final long serialVersionUID = -3672330283934624242L;
33
    private static final String KEY = "error_editing_table";
34
    private static final String FORMAT = "Can't edit the table: %(table) ";
35

  
36
    public TableEditingException(String table, Throwable exception) {
37
        super(FORMAT, exception, KEY, serialVersionUID);
38
        setValue("table", table);
39
    }
40
}
tags/v2_0_0_Build_2059/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/exceptions/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>Table document exceptions</p>
11

  
12
</body>
13
</html>
tags/v2_0_0_Build_2059/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/exceptions/CancelEditingTableException.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.project.documents.table.exceptions;
23

  
24
/**
25
 * @author Vicente Caballero Navarro
26
 */
27
public class CancelEditingTableException extends TableEditingException {
28

  
29
    /**
30
	 * 
31
	 */
32
    private static final long serialVersionUID = 5231674331725098637L;
33

  
34
    public CancelEditingTableException(String table, Throwable exception) {
35
        super(table, exception);
36
        init();
37
        initCause(exception);
38
    }
39

  
40
    private void init() {
41
        messageKey = "error_cancel_editing_table";
42
        formatString = "Can�t cancel editing the table: %(table) ";
43
    }
44

  
45
}
tags/v2_0_0_Build_2059/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/exceptions/StopEditingTableException.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.project.documents.table.exceptions;
23

  
24
/**
25
 * @author Vicente Caballero Navarro
26
 */
27
public class StopEditingTableException extends TableEditingException {
28

  
29
    /**
30
	 * 
31
	 */
32
    private static final long serialVersionUID = 1663393663065092896L;
33

  
34
    public StopEditingTableException(String table, Throwable exception) {
35
        super(table, exception);
36
        init();
37
        initCause(exception);
38
    }
39

  
40
    private void init() {
41
        messageKey = "error_stop_editing_table";
42
        formatString = "Can�t stop editing the table: %(table) ";
43
    }
44

  
45
}
tags/v2_0_0_Build_2059/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/TableManager.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
 * 2004-2009 IVER TI
26
 *   
27
 */
28

  
29
package org.gvsig.app.project.documents.table;
30

  
31
import java.util.Iterator;
32
import java.util.List;
33

  
34
import javax.swing.ImageIcon;
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff