Revision 29882
tags/tmp_build/examples/exaExampleCenterViewToPoint/.project | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<projectDescription> |
|
3 |
<name>exaExampleCenterViewToPoint</name> |
|
4 |
<comment></comment> |
|
5 |
<projects> |
|
6 |
</projects> |
|
7 |
<buildSpec> |
|
8 |
<buildCommand> |
|
9 |
<name>org.eclipse.jdt.core.javabuilder</name> |
|
10 |
<arguments> |
|
11 |
</arguments> |
|
12 |
</buildCommand> |
|
13 |
<buildCommand> |
|
14 |
<name>de.loskutov.FileSync.FSBuilder</name> |
|
15 |
<arguments> |
|
16 |
</arguments> |
|
17 |
</buildCommand> |
|
18 |
</buildSpec> |
|
19 |
<natures> |
|
20 |
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> |
|
21 |
<nature>org.eclipse.jdt.core.javanature</nature> |
|
22 |
<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature> |
|
23 |
</natures> |
|
24 |
</projectDescription> |
|
0 | 25 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/text_zh.properties | ||
---|---|---|
1 |
#Translations for language [zh] |
|
2 |
#Mon Feb 26 16:06:24 CET 2007 |
|
3 |
Centrar_la_Vista_sobre_un_punto=\u5411\u4e00\u70b9\u96c6\u4e2d |
|
4 |
debe_seleccionar_las_capas_de_las_que_quiera_obtener_informacion=\u60a8\u5fc5\u987b\u9009\u5b9a\u60a8\u8981\u8bfb\u53d6\u4fe1\u606f\u7684\u56fe\u5c42 |
|
5 |
formato_de_numero_incorrecto=\u6570\u5b57\u683c\u5f0f\u65e0\u6548 |
|
6 |
no_hay_ninguna_capa_seleccionada=\u672a\u9009\u5b9a\u56fe\u5c42 |
|
7 |
Vista=\u89c6\u56fe |
|
0 | 8 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/text_ca.properties | ||
---|---|---|
1 |
#Translations for language [ca] |
|
2 |
#Mon Feb 26 16:06:24 CET 2007 |
|
3 |
Centrar_la_Vista_sobre_un_punto=Centrar la Vista sobre un punt |
|
4 |
debe_seleccionar_las_capas_de_las_que_quiera_obtener_informacion=Ha de seleccionar les capes de les quals vol obtindre informaci\u00f3 |
|
5 |
formato_de_numero_incorrecto=Format de n\u00famero incorrecte |
|
6 |
no_hay_ninguna_capa_seleccionada=No hi ha cap capa seleccionada |
|
7 |
Vista=Vista |
|
0 | 8 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/text_pt.properties | ||
---|---|---|
1 |
#Translations for language [pt] |
|
2 |
#Mon Feb 26 16:06:24 CET 2007 |
|
3 |
Centrar_la_Vista_sobre_un_punto= |
|
4 |
debe_seleccionar_las_capas_de_las_que_quiera_obtener_informacion= |
|
5 |
formato_de_numero_incorrecto= |
|
6 |
no_hay_ninguna_capa_seleccionada= |
|
7 |
Vista=Vista |
|
0 | 8 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/text_de.properties | ||
---|---|---|
1 |
#Translations for language [de] |
|
2 |
#Mon Feb 26 16:06:24 CET 2007 |
|
3 |
Centrar_la_Vista_sobre_un_punto= |
|
4 |
debe_seleccionar_las_capas_de_las_que_quiera_obtener_informacion= |
|
5 |
formato_de_numero_incorrecto= |
|
6 |
no_hay_ninguna_capa_seleccionada= |
|
7 |
Vista=Ansicht |
|
0 | 8 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/config-step1.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<depends plugin-name="com.iver.cit.gvsig" /> |
|
4 |
<libraries library-dir="lib"/> |
|
5 |
<resourceBundle name="text"/> |
|
6 |
<extensions> |
|
7 |
<!-- about extensions --> |
|
8 |
<extension class-name="org.gvsig.examples.example1.about.AboutExtension" |
|
9 |
description="Extensi?n de ejemplo." |
|
10 |
active="true" |
|
11 |
priority="1" /> |
|
12 |
|
|
13 |
</extensions> |
|
14 |
</plugin-config> |
|
0 | 15 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/config-step3.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<depends plugin-name="com.iver.cit.gvsig" /> |
|
4 |
<libraries library-dir="lib"/> |
|
5 |
<resourceBundle name="text"/> |
|
6 |
<extensions> |
|
7 |
<!-- about extensions --> |
|
8 |
<extension class-name="org.gvsig.examples.example1.about.AboutExtension" |
|
9 |
description="Extensi?n de ejemplo." |
|
10 |
active="true" |
|
11 |
priority="1" /> |
|
12 |
|
|
13 |
<!-- exclusiveUI extensions --> |
|
14 |
<extension class-name="org.gvsig.examples.example1.exclusiveUI.ExclusiveUIExtension" |
|
15 |
description="Extensi?n de ejemplo." |
|
16 |
active="true" |
|
17 |
priority="1" /> |
|
18 |
|
|
19 |
</extensions> |
|
20 |
</plugin-config> |
|
0 | 21 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/about.htm | ||
---|---|---|
1 |
<html> |
|
2 |
<head> |
|
3 |
<title>Extesión de ejemplo.</title> |
|
4 |
<meta content=""> |
|
5 |
<style></style> |
|
6 |
</head> |
|
7 |
<body> |
|
8 |
<table width="60%" border="0"> |
|
9 |
<tr> |
|
10 |
<td width="64%"><img src="images/logo_horiz_bicolor_gva.png" width="329" height="50"></td> |
|
11 |
<td width="36%"><div align="right"><img src="images/logoIver.png" width="87" height="50"></div></td> |
|
12 |
</tr> |
|
13 |
<tr> |
|
14 |
<td colspan="2"><font face="Arial, Helvetica, sans-serif">© Copyright |
|
15 |
Generalitat Valenciana, IVER T.I. 2007.</font></td> |
|
16 |
</tr> |
|
17 |
</table> |
|
18 |
<h3>Extensión de ejemplo:</h3> |
|
19 |
<p> - Opciones menú</p> |
|
20 |
<p> - Información ToolBar</p> |
|
21 |
<p> - Modificar preferencias</p> |
|
22 |
<p> - Opción en el menú contextual</p> |
|
23 |
<p> - Posibilidad de visualizar las extensiones elegidas</p> |
|
24 |
<p> - Personalización del Splash</p> |
|
25 |
<p> - InfoTool personalizado para nuestra capa</p> |
|
26 |
<p> - Ventana de About</p> |
|
27 |
<p> - Crear extensión sin los fuentes de gvSIG</p> |
|
28 |
|
|
29 |
<p><br><br><b> Build Number: #build.number#</b></p> |
|
30 |
</body> |
|
31 |
</html> |
|
0 | 32 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/config-step4.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<depends plugin-name="com.iver.cit.gvsig" /> |
|
4 |
<libraries library-dir="lib"/> |
|
5 |
<resourceBundle name="text"/> |
|
6 |
<extensions> |
|
7 |
<!-- about extensions --> |
|
8 |
<extension class-name="org.gvsig.examples.example1.about.AboutExtension" |
|
9 |
description="Extensi?n de ejemplo." |
|
10 |
active="true" |
|
11 |
priority="1" /> |
|
12 |
|
|
13 |
<!-- exclusiveUI extensions --> |
|
14 |
<extension class-name="org.gvsig.examples.example1.exclusiveUI.ExclusiveUIExtension" |
|
15 |
description="Extensi?n de ejemplo." |
|
16 |
active="true" |
|
17 |
priority="1" /> |
|
18 |
|
|
19 |
<!-- load CSV layer extensions --> |
|
20 |
<extension class-name="org.gvsig.examples.example1.loadCSVLayer.OpenCSVToPointsExtension" |
|
21 |
description="Extensi?n encargada de abrir una vista con una cpa de puntos de una fichero CSV." |
|
22 |
active="true" |
|
23 |
priority="30"> |
|
24 |
</extension> |
|
25 |
</extensions> |
|
26 |
</plugin-config> |
|
0 | 27 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/text_en.properties | ||
---|---|---|
1 |
#Translations for language [en] |
|
2 |
#Mon Feb 26 16:06:24 CET 2007 |
|
3 |
Centrar_la_Vista_sobre_un_punto=Center view to point |
|
4 |
color_point=Color point |
|
5 |
debe_seleccionar_las_capas_de_las_que_quiera_obtener_informacion=Select the layers you want to get information from |
|
6 |
example_extension=Example extension |
|
7 |
formato_de_numero_incorrecto=Incorrect number format |
|
8 |
no_hay_ninguna_capa_seleccionada=No layer has been selected |
|
9 |
this_is_a_window_example=This is a window example |
|
10 |
Vista=View |
|
0 | 11 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/text_gl.properties | ||
---|---|---|
1 |
#Translations for language [gl] |
|
2 |
#Mon Feb 26 16:06:24 CET 2007 |
|
3 |
Centrar_la_Vista_sobre_un_punto=Centrar a vista sobre un punto |
|
4 |
debe_seleccionar_las_capas_de_las_que_quiera_obtener_informacion=Debe seleccionar as capas das que desexe obter informaci\u00f3n |
|
5 |
formato_de_numero_incorrecto=Formato de n\u00famero incorrecto. |
|
6 |
no_hay_ninguna_capa_seleccionada=Non hai ningunha capa seleccionada |
|
7 |
Vista=Vista |
|
0 | 8 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/config-step5.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<depends plugin-name="com.iver.cit.gvsig" /> |
|
4 |
<libraries library-dir="lib"/> |
|
5 |
<resourceBundle name="text"/> |
|
6 |
<extensions> |
|
7 |
<!-- about extensions --> |
|
8 |
<extension class-name="org.gvsig.examples.example1.about.AboutExtension" |
|
9 |
description="Extensi?n de ejemplo." |
|
10 |
active="true" |
|
11 |
priority="1" /> |
|
12 |
|
|
13 |
<!-- exclusiveUI extensions --> |
|
14 |
<extension class-name="org.gvsig.examples.example1.exclusiveUI.ExclusiveUIExtension" |
|
15 |
description="Extensi?n de ejemplo." |
|
16 |
active="true" |
|
17 |
priority="1" /> |
|
18 |
|
|
19 |
<!-- load CSV layer extensions --> |
|
20 |
<extension class-name="org.gvsig.examples.example1.loadCSVLayer.OpenCSVToPointsExtension" |
|
21 |
description="Extensi?n encargada de abrir una vista con una cpa de puntos de una fichero CSV." |
|
22 |
active="true" |
|
23 |
priority="30"> |
|
24 |
</extension> |
|
25 |
|
|
26 |
<!-- preferences extensions --> |
|
27 |
<extension class-name="org.gvsig.examples.example1.centerViewToPoint.PreferencePageExtension" |
|
28 |
description="Extensi?n de ejemplo." |
|
29 |
active="true" |
|
30 |
priority="1" /> |
|
31 |
</extensions> |
|
32 |
</plugin-config> |
|
0 | 33 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/config-step6.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<depends plugin-name="com.iver.cit.gvsig" /> |
|
4 |
<libraries library-dir="lib"/> |
|
5 |
<resourceBundle name="text"/> |
|
6 |
<extensions> |
|
7 |
<!-- about extensions --> |
|
8 |
<extension class-name="org.gvsig.examples.example1.about.AboutExtension" |
|
9 |
description="Extensi?n de ejemplo." |
|
10 |
active="true" |
|
11 |
priority="1" /> |
|
12 |
|
|
13 |
<!-- exclusiveUI extensions --> |
|
14 |
<extension class-name="org.gvsig.examples.example1.exclusiveUI.ExclusiveUIExtension" |
|
15 |
description="Extensi?n de ejemplo." |
|
16 |
active="true" |
|
17 |
priority="1" /> |
|
18 |
|
|
19 |
<!-- load CSV layer extensions --> |
|
20 |
<extension class-name="org.gvsig.examples.example1.loadCSVLayer.OpenCSVToPointsExtension" |
|
21 |
description="Extensi?n encargada de abrir una vista con una cpa de puntos de una fichero CSV." |
|
22 |
active="true" |
|
23 |
priority="30"> |
|
24 |
</extension> |
|
25 |
|
|
26 |
<!-- preferences extensions --> |
|
27 |
<extension class-name="org.gvsig.examples.example1.centerViewToPoint.PreferencePageExtension" |
|
28 |
description="Extensi?n de ejemplo." |
|
29 |
active="true" |
|
30 |
priority="1" /> |
|
31 |
|
|
32 |
<!-- centerViewToPoint extensions --> |
|
33 |
<extension class-name="org.gvsig.examples.example1.centerViewToPoint.CenterViewToPointExtension" |
|
34 |
description="Extensi?n que permite hacer zooms en funci?n de un par de coordenadas introducidas por el usuario." |
|
35 |
active="true" |
|
36 |
priority="2"> |
|
37 |
<menu text="Vista/Centrar_la_Vista_sobre_un_punto" tooltip="Centrar_la_Vista_sobre_un_punto" |
|
38 |
action-command="CENTERVIEWTOPOINT" |
|
39 |
icon="images/centerviewtopoint.png" /> |
|
40 |
<tool-bar name="com.iver.cit.gvsig.Herramientas"> |
|
41 |
<action-tool icon="images/centerviewtopoint.png" |
|
42 |
action-command="CENTERVIEWTOPOINT" tooltip="Centrar_la_Vista_sobre_un_punto" |
|
43 |
enable-text="deber?a de estar activada" last="true"/> |
|
44 |
</tool-bar> |
|
45 |
</extension> |
|
46 |
</extensions> |
|
47 |
</plugin-config> |
|
0 | 48 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/config-step7.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<depends plugin-name="com.iver.cit.gvsig" /> |
|
4 |
<libraries library-dir="lib"/> |
|
5 |
<resourceBundle name="text"/> |
|
6 |
<extensions> |
|
7 |
<!-- about extensions --> |
|
8 |
<extension class-name="org.gvsig.examples.example1.about.AboutExtension" |
|
9 |
description="Extensi?n de ejemplo." |
|
10 |
active="true" |
|
11 |
priority="1" /> |
|
12 |
|
|
13 |
<!-- exclusiveUI extensions --> |
|
14 |
<extension class-name="org.gvsig.examples.example1.exclusiveUI.ExclusiveUIExtension" |
|
15 |
description="Extensi?n de ejemplo." |
|
16 |
active="true" |
|
17 |
priority="1" /> |
|
18 |
|
|
19 |
<!-- load CSV layer extensions --> |
|
20 |
<extension class-name="org.gvsig.examples.example1.loadCSVLayer.OpenCSVToPointsExtension" |
|
21 |
description="Extensi?n encargada de abrir una vista con una cpa de puntos de una fichero CSV." |
|
22 |
active="true" |
|
23 |
priority="30"> |
|
24 |
</extension> |
|
25 |
|
|
26 |
<!-- preferences extensions --> |
|
27 |
<extension class-name="org.gvsig.examples.example1.centerViewToPoint.PreferencePageExtension" |
|
28 |
description="Extensi?n de ejemplo." |
|
29 |
active="true" |
|
30 |
priority="1" /> |
|
31 |
|
|
32 |
<!-- centerViewToPoint extensions --> |
|
33 |
<extension class-name="org.gvsig.examples.example1.centerViewToPoint.CenterViewToPointExtension" |
|
34 |
description="Extensi?n que permite hacer zooms en funci?n de un par de coordenadas introducidas por el usuario." |
|
35 |
active="true" |
|
36 |
priority="2"> |
|
37 |
<menu text="Vista/Centrar_la_Vista_sobre_un_punto" tooltip="Centrar_la_Vista_sobre_un_punto" |
|
38 |
action-command="CENTERVIEWTOPOINT" |
|
39 |
icon="images/centerviewtopoint.png" /> |
|
40 |
<tool-bar name="com.iver.cit.gvsig.Herramientas"> |
|
41 |
<action-tool icon="images/centerviewtopoint.png" |
|
42 |
action-command="CENTERVIEWTOPOINT" tooltip="Centrar_la_Vista_sobre_un_punto" |
|
43 |
enable-text="deber?a de estar activada" last="true"/> |
|
44 |
</tool-bar> |
|
45 |
</extension> |
|
46 |
|
|
47 |
<!-- TOC menu entry --> |
|
48 |
<extension class-name="org.gvsig.examples.example1.centerViewToPoint.TOCMenuExtension" |
|
49 |
description="Extensi?n de ejemplo." |
|
50 |
active="true" |
|
51 |
priority="1" /> |
|
52 |
</extensions> |
|
53 |
</plugin-config> |
|
0 | 54 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<depends plugin-name="com.iver.cit.gvsig" /> |
|
4 |
<libraries library-dir="lib"/> |
|
5 |
<resourceBundle name="text"/> |
|
6 |
<extensions> |
|
7 |
<!-- about extensions --> |
|
8 |
<extension class-name="org.gvsig.examples.example1.about.AboutExtension" |
|
9 |
description="Extensi?n de ejemplo." |
|
10 |
active="true" |
|
11 |
priority="1" /> |
|
12 |
|
|
13 |
<!-- exclusiveUI extensions --> |
|
14 |
<extension class-name="org.gvsig.examples.example1.exclusiveUI.ExclusiveUIExtension" |
|
15 |
description="Extensi?n de ejemplo." |
|
16 |
active="true" |
|
17 |
priority="1" /> |
|
18 |
|
|
19 |
<!-- load CSV layer extensions --> |
|
20 |
<extension class-name="org.gvsig.examples.example1.loadCSVLayer.OpenCSVToPointsExtension" |
|
21 |
description="Extensi?n encargada de abrir una vista con una cpa de puntos de una fichero CSV." |
|
22 |
active="true" |
|
23 |
priority="30"> |
|
24 |
</extension> |
|
25 |
|
|
26 |
<!-- preferences extensions --> |
|
27 |
<extension class-name="org.gvsig.examples.example1.centerViewToPoint.PreferencePageExtension" |
|
28 |
description="Extensi?n de ejemplo." |
|
29 |
active="true" |
|
30 |
priority="1" /> |
|
31 |
|
|
32 |
<!-- centerViewToPoint extensions --> |
|
33 |
<extension class-name="org.gvsig.examples.example1.centerViewToPoint.CenterViewToPointExtension" |
|
34 |
description="Extensi?n que permite hacer zooms en funci?n de un par de coordenadas introducidas por el usuario." |
|
35 |
active="true" |
|
36 |
priority="2"> |
|
37 |
<menu text="Vista/Centrar_la_Vista_sobre_un_punto" tooltip="Centrar_la_Vista_sobre_un_punto" |
|
38 |
action-command="CENTERVIEWTOPOINT" |
|
39 |
icon="images/centerviewtopoint.png" /> |
|
40 |
<tool-bar name="com.iver.cit.gvsig.Herramientas"> |
|
41 |
<action-tool icon="images/centerviewtopoint.png" |
|
42 |
action-command="CENTERVIEWTOPOINT" tooltip="Centrar_la_Vista_sobre_un_punto" |
|
43 |
enable-text="deber?a de estar activada" last="true"/> |
|
44 |
</tool-bar> |
|
45 |
</extension> |
|
46 |
|
|
47 |
<!-- TOC menu entry --> |
|
48 |
<extension class-name="org.gvsig.examples.example1.centerViewToPoint.TOCMenuExtension" |
|
49 |
description="Extensi?n de ejemplo." |
|
50 |
active="true" |
|
51 |
priority="1" /> |
|
52 |
|
|
53 |
<!-- info tool extensions --> |
|
54 |
<extension class-name="org.gvsig.examples.example1.infotool.InfoToolExampleExtension" |
|
55 |
description="Extensi?n encargada de gestionar la herramienta de info y centrar el extent al punto." |
|
56 |
active="true" |
|
57 |
priority="29"> |
|
58 |
<menu text="Vista/consulta/informacion" action-command="CUSTOMINFO" icon="images/Identify.png"/> |
|
59 |
<tool-bar name="View_Tools_Query" position="5"> |
|
60 |
<selectable-tool icon="images/Identify.png" action-command="CUSTOMINFO" tooltip="informacion" position="1"/> |
|
61 |
</tool-bar> |
|
62 |
</extension> |
|
63 |
</extensions> |
|
64 |
</plugin-config> |
|
0 | 65 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/text_cs.properties | ||
---|---|---|
1 |
#Translations for language [cs] |
|
2 |
#Mon Feb 26 16:06:24 CET 2007 |
|
3 |
Centrar_la_Vista_sobre_un_punto=Centruj pohled na st\u0159ed |
|
4 |
debe_seleccionar_las_capas_de_las_que_quiera_obtener_informacion=Ozna\u010dte vrstvy, ze kter\u00fdch chcete z\u00edskat informace |
|
5 |
formato_de_numero_incorrecto=Neplatn\u00e9 \u010d\u00edslo form\u00e1tu |
|
6 |
no_hay_ninguna_capa_seleccionada=Nebyla vybr\u00e1na \u017e\u00e1dn\u00e1 vrstva |
|
7 |
Vista=Pohled |
|
0 | 8 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/text_fr.properties | ||
---|---|---|
1 |
#Translations for language [fr] |
|
2 |
#Mon Feb 26 16:06:24 CET 2007 |
|
3 |
Centrar_la_Vista_sobre_un_punto=Centrer la vue sur un point |
|
4 |
debe_seleccionar_las_capas_de_las_que_quiera_obtener_informacion=Vous devez s\u00e9lectionner les couches pour lesquelles vous souhaitez obtenir des informations. |
|
5 |
formato_de_numero_incorrecto=Format incorrect |
|
6 |
no_hay_ninguna_capa_seleccionada= |
|
7 |
Vista=Vue |
|
0 | 8 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/text_nl.properties | ||
---|---|---|
1 |
#Translations for language [nl] |
|
2 |
#Mon Feb 26 16:06:24 CET 2007 |
|
3 |
Centrar_la_Vista_sobre_un_punto= |
|
4 |
debe_seleccionar_las_capas_de_las_que_quiera_obtener_informacion= |
|
5 |
formato_de_numero_incorrecto= |
|
6 |
no_hay_ninguna_capa_seleccionada= |
|
7 |
Vista=Kaartbeeld |
|
0 | 8 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/text_eu.properties | ||
---|---|---|
1 |
#Translations for language [eu] |
|
2 |
#Mon Feb 26 16:06:24 CET 2007 |
|
3 |
Centrar_la_Vista_sobre_un_punto=Zentratu bista puntu batekiko |
|
4 |
debe_seleccionar_las_capas_de_las_que_quiera_obtener_informacion=Geruzak hautatu behar dituzu horien gaineko informazioa jasotzeko. |
|
5 |
formato_de_numero_incorrecto=Zenbakiaren formatua okerra da |
|
6 |
no_hay_ninguna_capa_seleccionada= |
|
7 |
Vista=Bista |
|
0 | 8 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/text_pl.properties | ||
---|---|---|
1 |
#Translations for language [po] |
|
2 |
#Mon Mar 12 10:04:20 CET 2007 |
|
3 |
Centrar_la_Vista_sobre_un_punto=Wycentruj w punkcie |
|
4 |
debe_seleccionar_las_capas_de_las_que_quiera_obtener_informacion=Wybierz warstwy, z kt\u00f3rych chcesz pobra\u0107 informacje |
|
5 |
formato_de_numero_incorrecto=Niew\u0142a\u015bciwy format liczbowy |
|
6 |
no_hay_ninguna_capa_seleccionada=Nie wybrano warstwy |
|
7 |
Vista=Widok |
|
0 | 8 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/text_it.properties | ||
---|---|---|
1 |
#Translations for language [it] |
|
2 |
#Mon Feb 26 16:06:24 CET 2007 |
|
3 |
Centrar_la_Vista_sobre_un_punto=Centra la visuale su un punto |
|
4 |
debe_seleccionar_las_capas_de_las_que_quiera_obtener_informacion=Selezionare i layers di cui si desiderano informazioni. |
|
5 |
formato_de_numero_incorrecto=Formato del numero errato. |
|
6 |
no_hay_ninguna_capa_seleccionada=Nessun layer selezionato |
|
7 |
Vista=Vista |
|
0 | 8 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/text.properties | ||
---|---|---|
1 |
#Translations for language [es] |
|
2 |
#Mon Feb 26 16:06:24 CET 2007 |
|
3 |
Centrar_la_Vista_sobre_un_punto=Centrar la vista sobre un punto |
|
4 |
color_point=Color del punto |
|
5 |
debe_seleccionar_las_capas_de_las_que_quiera_obtener_informacion=Debe seleccionar las capas de las que quiera obtener informaci\u00f3n. |
|
6 |
example_extension=Extensi?n ejemplo |
|
7 |
formato_de_numero_incorrecto=Formato de n\u00famero incorrecto. |
|
8 |
no_hay_ninguna_capa_seleccionada=No hay ninguna capa seleccionada |
|
9 |
this_is_a_window_example=Esto es una ventana de ejemplo |
|
10 |
Vista=Vista |
|
0 | 11 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/config/text_ro.properties | ||
---|---|---|
1 |
#Translations for language [ro] |
|
2 |
#Thu Mar 01 10:01:15 CET 2007 |
|
3 |
Centrar_la_Vista_sobre_un_punto=Centrar atentia a un punct |
|
4 |
debe_seleccionar_las_capas_de_las_que_quiera_obtener_informacion=Trebuie selectionate crpetele de la care dorim obtine informati |
|
5 |
formato_de_numero_incorrecto= |
|
6 |
no_hay_ninguna_capa_seleccionada=nu ai ninguna capeta selectionata |
|
7 |
Vista=Vedere |
|
0 | 8 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/build.number | ||
---|---|---|
1 |
#Build Number for ANT. Do not edit! |
|
2 |
#Thu Apr 19 17:16:38 CEST 2007 |
|
3 |
build.number=910 |
|
0 | 4 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/src/org/gvsig/examples/example1/exclusiveUI/ExclusiveUIExtension.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2007 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
* |
|
19 |
* For more information, contact: |
|
20 |
* |
|
21 |
* Generalitat Valenciana |
|
22 |
* Conselleria d'Infraestructures i Transport |
|
23 |
* Av. Blasco Ib??ez, 50 |
|
24 |
* 46010 VALENCIA |
|
25 |
* SPAIN |
|
26 |
* |
|
27 |
* +34 963862235 |
|
28 |
* gvsig@gva.es |
|
29 |
* www.gvsig.gva.es |
|
30 |
* |
|
31 |
* or |
|
32 |
* |
|
33 |
* IVER T.I. S.A |
|
34 |
* Salamanca 50 |
|
35 |
* 46005 Valencia |
|
36 |
* Spain |
|
37 |
* |
|
38 |
* +34 963163400 |
|
39 |
* dac@iver.es |
|
40 |
*/ |
|
41 |
|
|
42 |
package org.gvsig.examples.example1.exclusiveUI; |
|
43 |
|
|
44 |
import java.util.HashSet; |
|
45 |
|
|
46 |
import com.iver.andami.PluginServices; |
|
47 |
import com.iver.andami.plugins.Extension; |
|
48 |
|
|
49 |
/** |
|
50 |
* This extension shows how to use an ExclusiveUIExtension, an extension which |
|
51 |
* takes over the control of the GUI and decides which extensions will be |
|
52 |
* visible (or hidden). |
|
53 |
* |
|
54 |
* @author Cesar Martinez Izquierdo <cesar.martinez@iver.es> |
|
55 |
* @author Vicente Caballero Navarro |
|
56 |
* |
|
57 |
*/ |
|
58 |
public class ExclusiveUIExtension extends Extension { |
|
59 |
private HashSet goodExtensions = new HashSet(); |
|
60 |
|
|
61 |
public void initialize() { |
|
62 |
|
|
63 |
goodExtensions.add("com.iver.core.Consola"); |
|
64 |
goodExtensions.add("com.iver.core.StatusBar"); |
|
65 |
goodExtensions.add("com.iver.core.PreferencesExtension"); |
|
66 |
goodExtensions.add("com.iver.cit.gvsig.ViewControls"); |
|
67 |
goodExtensions.add("com.iver.cit.gvsig.AddLayer"); |
|
68 |
goodExtensions.add("com.iver.cit.gvsig.ProjectExtension"); |
|
69 |
goodExtensions.add("com.iver.cit.gvsig.About"); |
|
70 |
goodExtensions.add("com.iver.cit.gvsig.LayoutControls"); |
|
71 |
goodExtensions.add("com.iver.cit.gvsig.ViewPropertiesExtension"); |
|
72 |
goodExtensions.add("com.iver.cit.gvsig.ZoomPrev"); |
|
73 |
goodExtensions.add("com.iver.cit.gvsig.ViewProjectWindow"); |
|
74 |
goodExtensions.add("com.iver.cit.gvsig.Print"); |
|
75 |
goodExtensions.add("com.iver.cit.gvsig.PrintProperties"); |
|
76 |
goodExtensions.add("com.iver.cit.gvsig.LayoutEditableControls"); |
|
77 |
goodExtensions.add("com.iver.cit.gvsig.LayoutUndoExtension"); |
|
78 |
goodExtensions.add("com.iver.cit.gvsig.LayoutRedoExtension"); |
|
79 |
goodExtensions.add("com.iver.cit.gvsig.LayoutInsertToolsExtension"); |
|
80 |
goodExtensions.add("com.iver.cit.gvsig.LayoutGraphicControls"); |
|
81 |
goodExtensions.add("com.iver.cit.gvsig.LayoutEditVertexExtension"); |
|
82 |
goodExtensions.add("com.iver.cit.gvsig.ViewSelectionControls"); |
|
83 |
goodExtensions.add("org.gvsig.examples.example1.extension.CenterViewToPointExtension"); |
|
84 |
goodExtensions.add("org.gvsig.examples.example1.extension.InfoToolExampleExtension"); |
|
85 |
goodExtensions.add("org.gvsig.examples.example1.extension.OpenCSVToPointsExtension"); |
|
86 |
goodExtensions.add("org.gvsig.examples.example1.PreferencePageExtension"); |
|
87 |
goodExtensions.add("org.gvsig.examples.example1.AboutExtension"); |
|
88 |
goodExtensions.add("org.gvsig.examples.example1.PreferencePageExtension"); |
|
89 |
goodExtensions.add("org.gvsig.examples.example1.TOCMenuExtension"); |
|
90 |
|
|
91 |
PluginServices.setExclusiveUIExtension(this); |
|
92 |
} |
|
93 |
|
|
94 |
public boolean isVisible(Extension ext) { |
|
95 |
// if the extension is in our good list, ask the extension for visibility |
|
96 |
if (goodExtensions.contains(ext.getClass().getName())) { |
|
97 |
return ext.isVisible(); |
|
98 |
} |
|
99 |
return false; |
|
100 |
} |
|
101 |
|
|
102 |
|
|
103 |
public boolean isEnabled() { |
|
104 |
// TODO Auto-generated method stub |
|
105 |
return false; |
|
106 |
} |
|
107 |
|
|
108 |
public boolean isVisible() { |
|
109 |
// TODO Auto-generated method stub |
|
110 |
return false; |
|
111 |
} |
|
112 |
|
|
113 |
public void execute(String actionCommand) { |
|
114 |
// TODO Auto-generated method stub |
|
115 |
|
|
116 |
} |
|
117 |
|
|
118 |
} |
|
0 | 119 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/src/org/gvsig/examples/example1/centerViewToPoint/CenterViewToPointExtension.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
* |
|
19 |
* For more information, contact: |
|
20 |
* |
|
21 |
* Generalitat Valenciana |
|
22 |
* Conselleria d'Infraestructures i Transport |
|
23 |
* Av. Blasco Ib??ez, 50 |
|
24 |
* 46010 VALENCIA |
|
25 |
* SPAIN |
|
26 |
* |
|
27 |
* +34 963862235 |
|
28 |
* gvsig@gva.es |
|
29 |
* www.gvsig.gva.es |
|
30 |
* |
|
31 |
* or |
|
32 |
* |
|
33 |
* IVER T.I. S.A |
|
34 |
* Salamanca 50 |
|
35 |
* 46005 Valencia |
|
36 |
* Spain |
|
37 |
* |
|
38 |
* +34 963163400 |
|
39 |
* dac@iver.es |
|
40 |
*/ |
|
41 |
|
|
42 |
package org.gvsig.examples.example1.centerViewToPoint; |
|
43 |
|
|
44 |
import java.awt.Color; |
|
45 |
import java.util.prefs.Preferences; |
|
46 |
|
|
47 |
import com.iver.andami.PluginServices; |
|
48 |
import com.iver.andami.plugins.Extension; |
|
49 |
import com.iver.cit.gvsig.fmap.MapContext; |
|
50 |
import com.iver.cit.gvsig.fmap.layers.FLayers; |
|
51 |
import com.iver.cit.gvsig.project.documents.view.IProjectView; |
|
52 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
|
53 |
import com.iver.utiles.StringUtilities; |
|
54 |
|
|
55 |
/** |
|
56 |
* The CenterViewToPointExtension class allows to center the View over a |
|
57 |
* concrete point given by its coordinates. |
|
58 |
* |
|
59 |
* @author Vicente Caballero Navarro |
|
60 |
*/ |
|
61 |
public class CenterViewToPointExtension extends Extension{ |
|
62 |
|
|
63 |
private View vista; |
|
64 |
public static Color COLOR=Color.red; |
|
65 |
private static Preferences prefs = Preferences.userRoot().node( "centerviewtopoint" ); |
|
66 |
|
|
67 |
/* (non-Javadoc) |
|
68 |
* @see com.iver.andami.plugins.Extension#inicializar() |
|
69 |
*/ |
|
70 |
public void initialize() { |
|
71 |
String colorString=prefs.get("colorcenterviewtopoint",StringUtilities.color2String(CenterViewToPointExtension.COLOR)); |
|
72 |
Color color=StringUtilities.string2Color(colorString); |
|
73 |
CenterViewToPointExtension.COLOR=color; |
|
74 |
|
|
75 |
} |
|
76 |
|
|
77 |
/* (non-Javadoc) |
|
78 |
* @see com.iver.andami.plugins.Extension#execute(java.lang.String) |
|
79 |
*/ |
|
80 |
public void execute(String actionCommand) { |
|
81 |
if ("CENTERVIEWTOPOINT".equals(actionCommand)){ |
|
82 |
vista = (View)PluginServices.getMDIManager().getActiveWindow(); |
|
83 |
InputCoordinatesPanel dataSelectionPanel = new InputCoordinatesPanel(vista); |
|
84 |
PluginServices.getMDIManager().addWindow(dataSelectionPanel); |
|
85 |
} |
|
86 |
} |
|
87 |
|
|
88 |
public View getView(){ |
|
89 |
return vista; |
|
90 |
} |
|
91 |
/* (non-Javadoc) |
|
92 |
* @see com.iver.andami.plugins.Extension#isEnabled() |
|
93 |
*/ |
|
94 |
public boolean isEnabled() { |
|
95 |
com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager() |
|
96 |
.getActiveWindow(); |
|
97 |
if (f == null) { |
|
98 |
return false; |
|
99 |
} |
|
100 |
if (f.getClass() == View.class) { |
|
101 |
View vista = (View) f; |
|
102 |
IProjectView model = vista.getModel(); |
|
103 |
MapContext mapa = model.getMapContext(); |
|
104 |
FLayers layers = mapa.getLayers(); |
|
105 |
for (int i=0;i < layers.getLayersCount();i++) { |
|
106 |
if (layers.getLayer(i).isAvailable()) return true; |
|
107 |
} |
|
108 |
} |
|
109 |
return false; |
|
110 |
|
|
111 |
} |
|
112 |
|
|
113 |
/* (non-Javadoc) |
|
114 |
* @see com.iver.andami.plugins.Extension#isVisible() |
|
115 |
*/ |
|
116 |
public boolean isVisible() { |
|
117 |
com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager() |
|
118 |
.getActiveWindow(); |
|
119 |
if (f == null) { |
|
120 |
return false; |
|
121 |
} |
|
122 |
if (f.getClass() == View.class) { |
|
123 |
View vista = (View) f; |
|
124 |
IProjectView model = vista.getModel(); |
|
125 |
MapContext mapa = model.getMapContext(); |
|
126 |
if (mapa.getLayers().getLayersCount() > 0) { |
|
127 |
return true; |
|
128 |
} |
|
129 |
return false; |
|
130 |
} |
|
131 |
return false; |
|
132 |
} |
|
133 |
|
|
134 |
} |
|
0 | 135 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/src/org/gvsig/examples/example1/centerViewToPoint/CenterViewToPointPage.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
* |
|
19 |
* For more information, contact: |
|
20 |
* |
|
21 |
* Generalitat Valenciana |
|
22 |
* Conselleria d'Infraestructures i Transport |
|
23 |
* Av. Blasco Ib??ez, 50 |
|
24 |
* 46010 VALENCIA |
|
25 |
* SPAIN |
|
26 |
* |
|
27 |
* +34 963862235 |
|
28 |
* gvsig@gva.es |
|
29 |
* www.gvsig.gva.es |
|
30 |
* |
|
31 |
* or |
|
32 |
* |
|
33 |
* IVER T.I. S.A |
|
34 |
* Salamanca 50 |
|
35 |
* 46005 Valencia |
|
36 |
* Spain |
|
37 |
* |
|
38 |
* +34 963163400 |
|
39 |
* dac@iver.es |
|
40 |
*/ |
|
41 |
|
|
42 |
package org.gvsig.examples.example1.centerViewToPoint; |
|
43 |
|
|
44 |
import java.awt.Color; |
|
45 |
import java.util.prefs.Preferences; |
|
46 |
|
|
47 |
import javax.swing.ImageIcon; |
|
48 |
import javax.swing.JPanel; |
|
49 |
|
|
50 |
import com.iver.andami.PluginServices; |
|
51 |
import com.iver.andami.preferences.AbstractPreferencePage; |
|
52 |
import com.iver.andami.preferences.StoreException; |
|
53 |
import com.iver.cit.gvsig.gui.panels.ColorChooserPanel; |
|
54 |
import com.iver.utiles.StringUtilities; |
|
55 |
|
|
56 |
|
|
57 |
/** |
|
58 |
* References page of center view to point options. |
|
59 |
* |
|
60 |
* @author Vicente Caballero Navarro |
|
61 |
*/ |
|
62 |
public class CenterViewToPointPage extends AbstractPreferencePage { |
|
63 |
private static Preferences prefs = Preferences.userRoot().node("centerviewtopoint"); |
|
64 |
private ColorChooserPanel colorPoint; |
|
65 |
private ImageIcon icon; |
|
66 |
|
|
67 |
public CenterViewToPointPage() { |
|
68 |
super(); |
|
69 |
icon = new ImageIcon(this.getClass().getClassLoader().getResource("images/CenterView.png")); |
|
70 |
addComponent(PluginServices.getText(this, "color_point") + ":", |
|
71 |
colorPoint = new ColorChooserPanel()); |
|
72 |
} |
|
73 |
|
|
74 |
/* (non-Javadoc) |
|
75 |
* @see com.iver.andami.preferences.IPreference#initializeValues() |
|
76 |
*/ |
|
77 |
public void initializeValues() { |
|
78 |
String colorString = prefs.get("colorcenterviewtopoint", |
|
79 |
StringUtilities.color2String(CenterViewToPointExtension.COLOR)); |
|
80 |
Color color = StringUtilities.string2Color(colorString); |
|
81 |
CenterViewToPointExtension.COLOR = color; |
|
82 |
colorPoint.setColor(color); |
|
83 |
colorPoint.setAlpha(255); |
|
84 |
} |
|
85 |
|
|
86 |
/* (non-Javadoc) |
|
87 |
* @see com.iver.andami.preferences.IPreference#getID() |
|
88 |
*/ |
|
89 |
public String getID() { |
|
90 |
return this.getClass().getName(); |
|
91 |
} |
|
92 |
|
|
93 |
/* (non-Javadoc) |
|
94 |
* @see com.iver.andami.preferences.IPreference#getTitle() |
|
95 |
*/ |
|
96 |
public String getTitle() { |
|
97 |
return PluginServices.getText(this, "Centrar_la_Vista_sobre_un_punto"); |
|
98 |
} |
|
99 |
|
|
100 |
/* (non-Javadoc) |
|
101 |
* @see com.iver.andami.preferences.IPreference#getPanel() |
|
102 |
*/ |
|
103 |
public JPanel getPanel() { |
|
104 |
return this; |
|
105 |
} |
|
106 |
|
|
107 |
/* (non-Javadoc) |
|
108 |
* @see com.iver.andami.preferences.AbstractPreferencePage#storeValues() |
|
109 |
*/ |
|
110 |
public void storeValues() throws StoreException { |
|
111 |
String colorString; |
|
112 |
colorString = StringUtilities.color2String(colorPoint.getColor()); |
|
113 |
prefs.put("colorcenterviewtopoint", colorString); |
|
114 |
CenterViewToPointExtension.COLOR = colorPoint.getColor(); |
|
115 |
} |
|
116 |
|
|
117 |
/* (non-Javadoc) |
|
118 |
* @see com.iver.andami.preferences.IPreference#initializeDefaults() |
|
119 |
*/ |
|
120 |
public void initializeDefaults() { |
|
121 |
colorPoint.setColor(CenterViewToPointExtension.COLOR); |
|
122 |
} |
|
123 |
|
|
124 |
/* (non-Javadoc) |
|
125 |
* @see com.iver.andami.preferences.IPreference#getIcon() |
|
126 |
*/ |
|
127 |
public ImageIcon getIcon() { |
|
128 |
return icon; |
|
129 |
} |
|
130 |
|
|
131 |
/* (non-Javadoc) |
|
132 |
* @see com.iver.andami.preferences.IPreference#isValueChanged() |
|
133 |
*/ |
|
134 |
public boolean isValueChanged() { |
|
135 |
return super.hasChanged(); |
|
136 |
} |
|
137 |
|
|
138 |
/* (non-Javadoc) |
|
139 |
* @see com.iver.andami.preferences.AbstractPreferencePage#setChangesApplied() |
|
140 |
*/ |
|
141 |
public void setChangesApplied() { |
|
142 |
setChanged(false); |
|
143 |
} |
|
144 |
} |
|
0 | 145 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/src/org/gvsig/examples/example1/centerViewToPoint/TOCMenuExtension.java | ||
---|---|---|
1 |
package org.gvsig.examples.example1.centerViewToPoint; |
|
2 |
|
|
3 |
|
|
4 |
import com.iver.andami.plugins.Extension; |
|
5 |
import com.iver.utiles.extensionPoints.ExtensionPoints; |
|
6 |
import com.iver.utiles.extensionPoints.ExtensionPointsSingleton; |
|
7 |
|
|
8 |
/** |
|
9 |
* This extensions shows how to add a context menu to the TOC (table of |
|
10 |
* contents) of the view). |
|
11 |
* |
|
12 |
* @author cesar |
|
13 |
* |
|
14 |
*/ |
|
15 |
public class TOCMenuExtension extends Extension { |
|
16 |
|
|
17 |
public void execute(String actionCommand) { |
|
18 |
|
|
19 |
} |
|
20 |
|
|
21 |
public void initialize() { |
|
22 |
ExtensionPoints extensionPoints = ExtensionPointsSingleton.getInstance(); |
|
23 |
extensionPoints.add("View_TocActions", "CenterViewToPoint", |
|
24 |
new PropertiesTocMenuEntry()); |
|
25 |
// after this, a new entry appears in the context menu |
|
26 |
// When we click on this entry, PropertiesTocMenuEntry.execute() is called. |
|
27 |
} |
|
28 |
|
|
29 |
public boolean isEnabled() { |
|
30 |
// the context menu will be visible regardless the extension status |
|
31 |
return false; |
|
32 |
} |
|
33 |
|
|
34 |
public boolean isVisible() { |
|
35 |
// the context menu will be visible regardless the extension status |
|
36 |
return false; |
|
37 |
} |
|
38 |
|
|
39 |
} |
|
0 | 40 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/src/org/gvsig/examples/example1/centerViewToPoint/PreferencePageExtension.java | ||
---|---|---|
1 |
|
|
2 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
3 |
* |
|
4 |
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana. |
|
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
19 |
* |
|
20 |
* For more information, contact: |
|
21 |
* |
|
22 |
* Generalitat Valenciana |
|
23 |
* Conselleria d'Infraestructures i Transport |
|
24 |
* Av. Blasco Ib??ez, 50 |
|
25 |
* 46010 VALENCIA |
|
26 |
* SPAIN |
|
27 |
* |
|
28 |
* +34 963862235 |
|
29 |
* gvsig@gva.es |
|
30 |
* www.gvsig.gva.es |
|
31 |
* |
|
32 |
* or |
|
33 |
* |
|
34 |
* IVER T.I. S.A |
|
35 |
* Salamanca 50 |
|
36 |
* 46005 Valencia |
|
37 |
* Spain |
|
38 |
* |
|
39 |
* +34 963163400 |
|
40 |
* dac@iver.es |
|
41 |
*/ |
|
42 |
|
|
43 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
44 |
* |
|
45 |
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana. |
|
46 |
* |
|
47 |
* This program is free software; you can redistribute it and/or |
|
48 |
* modify it under the terms of the GNU General Public License |
|
49 |
* as published by the Free Software Foundation; either version 2 |
|
50 |
* of the License, or (at your option) any later version. |
|
51 |
* |
|
52 |
* This program is distributed in the hope that it will be useful, |
|
53 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
54 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
55 |
* GNU General Public License for more details. |
|
56 |
* |
|
57 |
* You should have received a copy of the GNU General Public License |
|
58 |
* along with this program; if not, write to the Free Software |
|
59 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
60 |
* |
|
61 |
* For more information, contact: |
|
62 |
* |
|
63 |
* Generalitat Valenciana |
|
64 |
* Conselleria d'Infraestructures i Transport |
|
65 |
* Av. Blasco Ib??ez, 50 |
|
66 |
* 46010 VALENCIA |
|
67 |
* SPAIN |
|
68 |
* |
|
69 |
* +34 963862235 |
|
70 |
* gvsig@gva.es |
|
71 |
* www.gvsig.gva.es |
|
72 |
* |
|
73 |
* or |
|
74 |
* |
|
75 |
* IVER T.I. S.A |
|
76 |
* Salamanca 50 |
|
77 |
* 46005 Valencia |
|
78 |
* Spain |
|
79 |
* |
|
80 |
* +34 963163400 |
|
81 |
* dac@iver.es |
|
82 |
*/ |
|
83 |
package org.gvsig.examples.example1.centerViewToPoint; |
|
84 |
|
|
85 |
|
|
86 |
import com.iver.andami.plugins.Extension; |
|
87 |
import com.iver.andami.preferences.IPreference; |
|
88 |
import com.iver.andami.preferences.IPreferenceExtension; |
|
89 |
|
|
90 |
|
|
91 |
/** |
|
92 |
* Example of extension which adds an option in the TOC context menu. |
|
93 |
* with a dialog of preferences, option in a context menu, |
|
94 |
* Exclusive extensions and about page. |
|
95 |
* |
|
96 |
* @author Vicente Caballero Navarro |
|
97 |
*/ |
|
98 |
public class PreferencePageExtension extends Extension implements IPreferenceExtension { |
|
99 |
|
|
100 |
private CenterViewToPointPage centerViewPage = new CenterViewToPointPage(); |
|
101 |
private IPreference[] preferencePages = {centerViewPage}; |
|
102 |
|
|
103 |
/* (non-Javadoc) |
|
104 |
* @see com.iver.andami.plugins.IExtension#initialize() |
|
105 |
*/ |
|
106 |
public void initialize() { |
|
107 |
} |
|
108 |
|
|
109 |
/* (non-Javadoc) |
|
110 |
* @see com.iver.andami.plugins.IExtension#execute(java.lang.String) |
|
111 |
*/ |
|
112 |
public void execute(String arg0) { |
|
113 |
} |
|
114 |
|
|
115 |
/* (non-Javadoc) |
|
116 |
* @see com.iver.andami.plugins.IExtension#isEnabled() |
|
117 |
*/ |
|
118 |
public boolean isEnabled() { |
|
119 |
return false; |
|
120 |
} |
|
121 |
|
|
122 |
/* (non-Javadoc) |
|
123 |
* @see com.iver.andami.plugins.IExtension#isVisible() |
|
124 |
*/ |
|
125 |
public boolean isVisible() { |
|
126 |
return false; |
|
127 |
} |
|
128 |
|
|
129 |
/* (non-Javadoc) |
|
130 |
* @see com.iver.andami.preferences.IPreferenceExtension#getPreferencesPage() |
|
131 |
*/ |
|
132 |
public IPreference getPreferencesPage() { |
|
133 |
return centerViewPage; |
|
134 |
} |
|
135 |
} |
|
0 | 136 |
tags/tmp_build/examples/exaExampleCenterViewToPoint/src/org/gvsig/examples/example1/centerViewToPoint/PropertiesTocMenuEntry.java | ||
---|---|---|
1 |
|
|
2 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
3 |
* |
|
4 |
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana. |
|
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
19 |
* |
|
20 |
* For more information, contact: |
|
21 |
* |
|
22 |
* Generalitat Valenciana |
|
23 |
* Conselleria d'Infraestructures i Transport |
|
24 |
* Av. Blasco Ib??ez, 50 |
|
25 |
* 46010 VALENCIA |
|
26 |
* SPAIN |
|
27 |
* |
|
28 |
* +34 963862235 |
|
29 |
* gvsig@gva.es |
|
30 |
* www.gvsig.gva.es |
|
31 |
* |
|
32 |
* or |
|
33 |
* |
|
34 |
* IVER T.I. S.A |
|
35 |
* Salamanca 50 |
|
36 |
* 46005 Valencia |
|
37 |
* Spain |
|
38 |
* |
|
39 |
* +34 963163400 |
|
40 |
* dac@iver.es |
|
41 |
*/ |
|
42 |
|
|
43 |
package org.gvsig.examples.example1.centerViewToPoint; |
|
44 |
|
|
45 |
import com.iver.andami.PluginServices; |
|
46 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
|
47 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
|
48 |
import com.iver.cit.gvsig.project.documents.view.toc.AbstractTocContextMenuAction; |
|
49 |
import com.iver.cit.gvsig.project.documents.view.toc.ITocItem; |
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
/** |
|
54 |
* Properties toc menu entry center view to point. |
|
55 |
* |
|
56 |
* @author Vicente Caballero Navarro |
|
57 |
*/ |
|
58 |
public class PropertiesTocMenuEntry extends AbstractTocContextMenuAction { |
|
59 |
/* (non-Javadoc) |
|
60 |
* @see com.iver.cit.gvsig.project.documents.IContextMenuAction#getGroup() |
|
61 |
*/ |
|
62 |
public String getGroup() { |
|
63 |
return "examplegroup"; |
Also available in: Unified diff