Revision 29416
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/.project | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<projectDescription> |
|
3 |
<name>extHyperlink</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 |
</buildSpec> |
|
14 |
<natures> |
|
15 |
<nature>org.eclipse.jdt.core.javanature</nature> |
|
16 |
</natures> |
|
17 |
</projectDescription> |
|
0 | 18 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text_sw.properties | ||
---|---|---|
1 |
#Translations for language [sw] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=Idhinisha |
|
5 |
Action= |
|
6 |
Actions= |
|
7 |
Add_action= |
|
8 |
Advanced_Hyperlink= |
|
9 |
Campo=Safu/Eneo lililowazi |
|
10 |
Cancel=Futa |
|
11 |
Capa=Safu/Tabata |
|
12 |
de=ya |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink= |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension= |
|
17 |
HTML_and_text_formats= |
|
18 |
Hyperlink= |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_Settings= |
|
22 |
Image_format= |
|
23 |
imprimir= |
|
24 |
Load_Raster_Layer= |
|
25 |
Load_Vector_Layer= |
|
26 |
Loads_raster_layers_in_gvSIG= |
|
27 |
Loads_vector_layers_in_gvSIG= |
|
28 |
Pagina= |
|
29 |
pagina_atras= |
|
30 |
pagina_delante= |
|
31 |
PDF_format= |
|
32 |
pdf_viewer= |
|
33 |
primera_pagina= |
|
34 |
Remove_action= |
|
35 |
Shows_HTML_or_text_files_in_gvSIG= |
|
36 |
Shows_image_files_in_gvSIG= |
|
37 |
Shows_PDF_files_in_gvSIG= |
|
38 |
Shows_SVG_files_in_gvSIG= |
|
39 |
SVG_format= |
|
40 |
ultima_pagina= |
|
41 |
valor_incorrecto= |
|
42 |
View_Tools_Query= |
|
0 | 43 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text_en.properties | ||
---|---|---|
1 |
#Translations for language [en] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=Accept |
|
5 |
Action=Action |
|
6 |
Actions=Actions |
|
7 |
Add_action=Add action |
|
8 |
Advanced_Hyperlink=Advanced Hyperlink |
|
9 |
Campo=Field |
|
10 |
Cancel=Cancel |
|
11 |
Capa=Layer |
|
12 |
de=of |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink=Enable hyperlink |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension=Extension |
|
17 |
HTML_and_text_formats=Link to text and HTML files |
|
18 |
Hyperlink=Hyperlink |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_settings=Hyperlink settings |
|
22 |
Hyperlink_Settings=Hyperlink Settings |
|
23 |
Image_format=Link to image files |
|
24 |
imprimir= |
|
25 |
Load_Raster_Layer=Load raster layer |
|
26 |
Load_Vector_Layer=Load Vector Layer |
|
27 |
Loads_raster_layers_in_gvSIG=Loads raster layers in active view |
|
28 |
Loads_vector_layers_in_gvSIG=Loads vector layers in active view |
|
29 |
Pagina= |
|
30 |
pagina_atras= |
|
31 |
pagina_delante= |
|
32 |
PDF_format=Link to PDF files |
|
33 |
pdf_viewer= |
|
34 |
primera_pagina= |
|
35 |
Remove_action=Remove action |
|
36 |
Shows_HTML_or_text_files_in_gvSIG= |
|
37 |
Shows_HTML_or_text_files_inside_gvSIG=Shows HTML or text files in gvSIG |
|
38 |
Shows_image_files_in_gvSIG=Shows image files in gvSIG |
|
39 |
Shows_PDF_files_in_gvSIG=Shows PDF files in gvSIG |
|
40 |
Shows_SVG_files_in_gvSIG=Shows SVG files in gvSIG |
|
41 |
SVG_format=Link to SVG files |
|
42 |
ultima_pagina= |
|
43 |
valor_incorrecto= |
|
44 |
View_Tools_Query= |
|
0 | 45 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text_gl.properties | ||
---|---|---|
1 |
#Translations for language [gl] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=Aceptar |
|
5 |
Action= |
|
6 |
Actions= |
|
7 |
Add_action= |
|
8 |
Advanced_Hyperlink= |
|
9 |
Campo=Campo |
|
10 |
Cancel=Cancelar |
|
11 |
Capa=Capa |
|
12 |
de=de |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink= |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension= |
|
17 |
HTML_and_text_formats= |
|
18 |
Hyperlink= |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_Settings= |
|
22 |
Image_format= |
|
23 |
imprimir= |
|
24 |
Load_Raster_Layer= |
|
25 |
Load_Vector_Layer= |
|
26 |
Loads_raster_layers_in_gvSIG= |
|
27 |
Loads_vector_layers_in_gvSIG= |
|
28 |
Pagina= |
|
29 |
pagina_atras= |
|
30 |
pagina_delante= |
|
31 |
PDF_format= |
|
32 |
pdf_viewer= |
|
33 |
primera_pagina= |
|
34 |
Remove_action= |
|
35 |
Shows_HTML_or_text_files_in_gvSIG= |
|
36 |
Shows_image_files_in_gvSIG= |
|
37 |
Shows_PDF_files_in_gvSIG= |
|
38 |
Shows_SVG_files_in_gvSIG= |
|
39 |
SVG_format= |
|
40 |
ultima_pagina= |
|
41 |
valor_incorrecto= |
|
42 |
View_Tools_Query= |
|
0 | 43 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<libraries library-dir="."/> |
|
4 |
<depends plugin-name="com.iver.cit.gvsig"/> |
|
5 |
<resourceBundle name="text"/> |
|
6 |
<extensions> |
|
7 |
<extension class-name="org.gvsig.hyperlink.LinkControls" |
|
8 |
description="Manages the advanced hyperlink." |
|
9 |
active="true" |
|
10 |
priority="20"> |
|
11 |
<menu text="Capa/Advanced_Hyperlink" action-command="HYPERLINK" icon="images/Link.png" position="5040"/> |
|
12 |
<tool-bar name="View_Tools_Query" position="5"> |
|
13 |
<selectable-tool icon="view-query-link" action-command="HYPERLINK" tooltip="Advanced_Hyperlink" position="7"/> |
|
14 |
</tool-bar> |
|
15 |
</extension> |
|
16 |
<!-- <extension class-name="org.gvsig.hyperlink.LinkConfigExtension" |
|
17 |
description="Manages the advanced hyperlink." |
|
18 |
active="true" |
|
19 |
priority="10" |
|
20 |
enable-text="Select one vectorial layer in TOC to activate"> |
|
21 |
<menu text="Capa/Hyperlink_settings" action-command="LINK_SETTINGS" icon="view-query-link" position="5045"/> |
|
22 |
</extension> --> |
|
23 |
</extensions> |
|
24 |
</plugin-config> |
|
0 | 25 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text_cs.properties | ||
---|---|---|
1 |
#Translations for language [cs] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=Budi\u017e |
|
5 |
Action= |
|
6 |
Actions= |
|
7 |
Add_action= |
|
8 |
Advanced_Hyperlink= |
|
9 |
Campo=Pole |
|
10 |
Cancel=Zru\u0161it |
|
11 |
Capa=Vrstva |
|
12 |
de=of |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink= |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension= |
|
17 |
HTML_and_text_formats= |
|
18 |
Hyperlink= |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_Settings= |
|
22 |
Image_format= |
|
23 |
imprimir= |
|
24 |
Load_Raster_Layer= |
|
25 |
Load_Vector_Layer= |
|
26 |
Loads_raster_layers_in_gvSIG= |
|
27 |
Loads_vector_layers_in_gvSIG= |
|
28 |
Pagina= |
|
29 |
pagina_atras= |
|
30 |
pagina_delante= |
|
31 |
PDF_format= |
|
32 |
pdf_viewer= |
|
33 |
primera_pagina= |
|
34 |
Remove_action= |
|
35 |
Shows_HTML_or_text_files_in_gvSIG= |
|
36 |
Shows_image_files_in_gvSIG= |
|
37 |
Shows_PDF_files_in_gvSIG= |
|
38 |
Shows_SVG_files_in_gvSIG= |
|
39 |
SVG_format= |
|
40 |
ultima_pagina= |
|
41 |
valor_incorrecto= |
|
42 |
View_Tools_Query= |
|
0 | 43 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text_pt_br.properties | ||
---|---|---|
1 |
#Translations for language [pt_br] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=Aceitar |
|
5 |
Action= |
|
6 |
Actions= |
|
7 |
Add_action= |
|
8 |
Advanced_Hyperlink= |
|
9 |
Campo=Campo |
|
10 |
Cancel=Cancelar |
|
11 |
Capa=Camada |
|
12 |
de=of |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink= |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension= |
|
17 |
HTML_and_text_formats= |
|
18 |
Hyperlink= |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_Settings= |
|
22 |
Image_format= |
|
23 |
imprimir= |
|
24 |
Load_Raster_Layer= |
|
25 |
Load_Vector_Layer= |
|
26 |
Loads_raster_layers_in_gvSIG= |
|
27 |
Loads_vector_layers_in_gvSIG= |
|
28 |
Pagina= |
|
29 |
pagina_atras= |
|
30 |
pagina_delante= |
|
31 |
PDF_format= |
|
32 |
pdf_viewer= |
|
33 |
primera_pagina= |
|
34 |
Remove_action= |
|
35 |
Shows_HTML_or_text_files_in_gvSIG= |
|
36 |
Shows_image_files_in_gvSIG= |
|
37 |
Shows_PDF_files_in_gvSIG= |
|
38 |
Shows_SVG_files_in_gvSIG= |
|
39 |
SVG_format= |
|
40 |
ultima_pagina= |
|
41 |
valor_incorrecto= |
|
42 |
View_Tools_Query= |
|
0 | 43 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text_fr.properties | ||
---|---|---|
1 |
#Translations for language [fr] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=Accepter |
|
5 |
Action= |
|
6 |
Actions= |
|
7 |
Add_action= |
|
8 |
Advanced_Hyperlink= |
|
9 |
Campo=Champ |
|
10 |
Cancel=Annuler |
|
11 |
Capa=Couche |
|
12 |
de=de |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink= |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension= |
|
17 |
HTML_and_text_formats= |
|
18 |
Hyperlink= |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_Settings= |
|
22 |
Image_format= |
|
23 |
imprimir= |
|
24 |
Load_Raster_Layer= |
|
25 |
Load_Vector_Layer= |
|
26 |
Loads_raster_layers_in_gvSIG= |
|
27 |
Loads_vector_layers_in_gvSIG= |
|
28 |
Pagina= |
|
29 |
pagina_atras= |
|
30 |
pagina_delante= |
|
31 |
PDF_format= |
|
32 |
pdf_viewer= |
|
33 |
primera_pagina= |
|
34 |
Remove_action= |
|
35 |
Shows_HTML_or_text_files_in_gvSIG= |
|
36 |
Shows_image_files_in_gvSIG= |
|
37 |
Shows_PDF_files_in_gvSIG= |
|
38 |
Shows_SVG_files_in_gvSIG= |
|
39 |
SVG_format= |
|
40 |
ultima_pagina= |
|
41 |
valor_incorrecto= |
|
42 |
View_Tools_Query= |
|
0 | 43 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text_eu.properties | ||
---|---|---|
1 |
#Translations for language [eu] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=Ados |
|
5 |
Action= |
|
6 |
Actions= |
|
7 |
Add_action= |
|
8 |
Advanced_Hyperlink= |
|
9 |
Campo=Eremua |
|
10 |
Cancel=Utzi |
|
11 |
Capa=Geruza |
|
12 |
de=hemendik |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink= |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension= |
|
17 |
HTML_and_text_formats= |
|
18 |
Hyperlink= |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_Settings= |
|
22 |
Image_format= |
|
23 |
imprimir= |
|
24 |
Load_Raster_Layer= |
|
25 |
Load_Vector_Layer= |
|
26 |
Loads_raster_layers_in_gvSIG= |
|
27 |
Loads_vector_layers_in_gvSIG= |
|
28 |
Pagina= |
|
29 |
pagina_atras= |
|
30 |
pagina_delante= |
|
31 |
PDF_format= |
|
32 |
pdf_viewer= |
|
33 |
primera_pagina= |
|
34 |
Remove_action= |
|
35 |
Shows_HTML_or_text_files_in_gvSIG= |
|
36 |
Shows_image_files_in_gvSIG= |
|
37 |
Shows_PDF_files_in_gvSIG= |
|
38 |
Shows_SVG_files_in_gvSIG= |
|
39 |
SVG_format= |
|
40 |
ultima_pagina= |
|
41 |
valor_incorrecto= |
|
42 |
View_Tools_Query= |
|
0 | 43 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text_nl.properties | ||
---|---|---|
1 |
#Translations for language [nl] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=OK |
|
5 |
Action= |
|
6 |
Actions= |
|
7 |
Add_action= |
|
8 |
Advanced_Hyperlink= |
|
9 |
Campo= |
|
10 |
Cancel= |
|
11 |
Capa=Laag |
|
12 |
de= |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink= |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension= |
|
17 |
HTML_and_text_formats= |
|
18 |
Hyperlink= |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_Settings= |
|
22 |
Image_format= |
|
23 |
imprimir= |
|
24 |
Load_Raster_Layer= |
|
25 |
Load_Vector_Layer= |
|
26 |
Loads_raster_layers_in_gvSIG= |
|
27 |
Loads_vector_layers_in_gvSIG= |
|
28 |
Pagina= |
|
29 |
pagina_atras= |
|
30 |
pagina_delante= |
|
31 |
PDF_format= |
|
32 |
pdf_viewer= |
|
33 |
primera_pagina= |
|
34 |
Remove_action= |
|
35 |
Shows_HTML_or_text_files_in_gvSIG= |
|
36 |
Shows_image_files_in_gvSIG= |
|
37 |
Shows_PDF_files_in_gvSIG= |
|
38 |
Shows_SVG_files_in_gvSIG= |
|
39 |
SVG_format= |
|
40 |
ultima_pagina= |
|
41 |
valor_incorrecto= |
|
42 |
View_Tools_Query= |
|
0 | 43 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text_pl.properties | ||
---|---|---|
1 |
#Translations for language [pl] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=Akceptuj |
|
5 |
Action= |
|
6 |
Actions= |
|
7 |
Add_action= |
|
8 |
Advanced_Hyperlink= |
|
9 |
Campo= |
|
10 |
Cancel= |
|
11 |
Capa=Warstwa |
|
12 |
de= |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink= |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension= |
|
17 |
HTML_and_text_formats= |
|
18 |
Hyperlink= |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_Settings= |
|
22 |
Image_format= |
|
23 |
imprimir= |
|
24 |
Load_Raster_Layer= |
|
25 |
Load_Vector_Layer= |
|
26 |
Loads_raster_layers_in_gvSIG= |
|
27 |
Loads_vector_layers_in_gvSIG= |
|
28 |
Pagina= |
|
29 |
pagina_atras= |
|
30 |
pagina_delante= |
|
31 |
PDF_format= |
|
32 |
pdf_viewer= |
|
33 |
primera_pagina= |
|
34 |
Remove_action= |
|
35 |
Shows_HTML_or_text_files_in_gvSIG= |
|
36 |
Shows_image_files_in_gvSIG= |
|
37 |
Shows_PDF_files_in_gvSIG= |
|
38 |
Shows_SVG_files_in_gvSIG= |
|
39 |
SVG_format= |
|
40 |
ultima_pagina= |
|
41 |
valor_incorrecto= |
|
42 |
View_Tools_Query= |
|
0 | 43 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text_it.properties | ||
---|---|---|
1 |
#Translations for language [it] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=Accetta |
|
5 |
Action= |
|
6 |
Actions= |
|
7 |
Add_action= |
|
8 |
Advanced_Hyperlink= |
|
9 |
Campo=Campo |
|
10 |
Cancel=Cancella |
|
11 |
Capa=Layer |
|
12 |
de=di |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink= |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension= |
|
17 |
HTML_and_text_formats= |
|
18 |
Hyperlink= |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_Settings= |
|
22 |
Image_format= |
|
23 |
imprimir= |
|
24 |
Load_Raster_Layer= |
|
25 |
Load_Vector_Layer= |
|
26 |
Loads_raster_layers_in_gvSIG= |
|
27 |
Loads_vector_layers_in_gvSIG= |
|
28 |
Pagina= |
|
29 |
pagina_atras= |
|
30 |
pagina_delante= |
|
31 |
PDF_format= |
|
32 |
pdf_viewer= |
|
33 |
primera_pagina= |
|
34 |
Remove_action= |
|
35 |
Shows_HTML_or_text_files_in_gvSIG= |
|
36 |
Shows_image_files_in_gvSIG= |
|
37 |
Shows_PDF_files_in_gvSIG= |
|
38 |
Shows_SVG_files_in_gvSIG= |
|
39 |
SVG_format= |
|
40 |
ultima_pagina= |
|
41 |
valor_incorrecto= |
|
42 |
View_Tools_Query= |
|
0 | 43 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text.properties | ||
---|---|---|
1 |
#Translations for language [es] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=Aceptar |
|
5 |
Action=Acci\u00f3n |
|
6 |
Actions=Acciones |
|
7 |
Add_action=A\u00f1adir acci\u00f3n |
|
8 |
Advanced_Hyperlink=Hiperenlace avanzado |
|
9 |
Campo=Campo |
|
10 |
Cancel=Cancelar |
|
11 |
Capa=Capa |
|
12 |
de=de |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink=Activar hiperenlace |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension=Extensi\u00f3n |
|
17 |
HTML_and_text_formats=Enlazar con ficheros de texto y HTML |
|
18 |
Hyperlink=Hiperenlace |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_settings=Configurar hiperenlace |
|
22 |
Hyperlink_Settings=Configurar Hiperenlace |
|
23 |
Image_format=Enlazar con ficheros de imagen |
|
24 |
imprimir= |
|
25 |
Load_Raster_Layer=Cargar capa r\u00e1ster |
|
26 |
Load_Vector_Layer=Cargar capa vectorial |
|
27 |
Loads_raster_layers_in_gvSIG=Carga capas r\u00e1ster en la vista activa |
|
28 |
Loads_vector_layers_in_gvSIG=Carga capas vectoriales en la vista activa |
|
29 |
Pagina= |
|
30 |
pagina_atras= |
|
31 |
pagina_delante= |
|
32 |
PDF_format=Enlazar con ficheros PDF |
|
33 |
pdf_viewer= |
|
34 |
primera_pagina= |
|
35 |
Remove_action=Eliminar acci\u00f3n |
|
36 |
Shows_HTML_or_text_files_in_gvSIG=Muestra ficheros HTML o de texto en gvSIG |
|
37 |
Shows_image_files_in_gvSIG=Muestra im\u00e1genes en gvSIG |
|
38 |
Shows_PDF_files_in_gvSIG=Muestra ficheros PDF en gvSIG |
|
39 |
Shows_SVG_files_in_gvSIG=Muestra ficheros SVG en gvSIG |
|
40 |
SVG_format=Enlazar con ficheros SVG |
|
41 |
ultima_pagina= |
|
42 |
valor_incorrecto= |
|
43 |
View_Tools_Query= |
|
0 | 44 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text_ro.properties | ||
---|---|---|
1 |
#Translations for language [ro] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=Accept\u0103 |
|
5 |
Action= |
|
6 |
Actions= |
|
7 |
Add_action= |
|
8 |
Advanced_Hyperlink= |
|
9 |
Campo=C\u00e2mp |
|
10 |
Cancel=Anulez |
|
11 |
Capa=Strat |
|
12 |
de=0\=de 0 |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink= |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension= |
|
17 |
HTML_and_text_formats= |
|
18 |
Hyperlink= |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_Settings= |
|
22 |
Image_format= |
|
23 |
imprimir= |
|
24 |
Load_Raster_Layer= |
|
25 |
Load_Vector_Layer= |
|
26 |
Loads_raster_layers_in_gvSIG= |
|
27 |
Loads_vector_layers_in_gvSIG= |
|
28 |
Pagina= |
|
29 |
pagina_atras= |
|
30 |
pagina_delante= |
|
31 |
PDF_format= |
|
32 |
pdf_viewer= |
|
33 |
primera_pagina= |
|
34 |
Remove_action= |
|
35 |
Shows_HTML_or_text_files_in_gvSIG= |
|
36 |
Shows_image_files_in_gvSIG= |
|
37 |
Shows_PDF_files_in_gvSIG= |
|
38 |
Shows_SVG_files_in_gvSIG= |
|
39 |
SVG_format= |
|
40 |
ultima_pagina= |
|
41 |
valor_incorrecto= |
|
42 |
View_Tools_Query= |
|
0 | 43 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text_zh.properties | ||
---|---|---|
1 |
#Translations for language [zh] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=\u786e\u5b9a |
|
5 |
Action= |
|
6 |
Actions= |
|
7 |
Add_action= |
|
8 |
Advanced_Hyperlink= |
|
9 |
Campo=\u5b57\u6bb5 |
|
10 |
Cancel=\u53d6\u6d88 |
|
11 |
Capa=\u56fe\u5c42 |
|
12 |
de= |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink= |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension= |
|
17 |
HTML_and_text_formats= |
|
18 |
Hyperlink= |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_Settings= |
|
22 |
Image_format= |
|
23 |
imprimir= |
|
24 |
Load_Raster_Layer= |
|
25 |
Load_Vector_Layer= |
|
26 |
Loads_raster_layers_in_gvSIG= |
|
27 |
Loads_vector_layers_in_gvSIG= |
|
28 |
Pagina= |
|
29 |
pagina_atras= |
|
30 |
pagina_delante= |
|
31 |
PDF_format= |
|
32 |
pdf_viewer= |
|
33 |
primera_pagina= |
|
34 |
Remove_action= |
|
35 |
Shows_HTML_or_text_files_in_gvSIG= |
|
36 |
Shows_image_files_in_gvSIG= |
|
37 |
Shows_PDF_files_in_gvSIG= |
|
38 |
Shows_SVG_files_in_gvSIG= |
|
39 |
SVG_format= |
|
40 |
ultima_pagina= |
|
41 |
valor_incorrecto= |
|
42 |
View_Tools_Query= |
|
0 | 43 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text_ca.properties | ||
---|---|---|
1 |
#Translations for language [ca] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=Acceptar |
|
5 |
Action= |
|
6 |
Actions= |
|
7 |
Add_action= |
|
8 |
Advanced_Hyperlink= |
|
9 |
Campo=Camp |
|
10 |
Cancel=Cancel\u00b7lar |
|
11 |
Capa=Capa |
|
12 |
de=de |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink= |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension= |
|
17 |
HTML_and_text_formats= |
|
18 |
Hyperlink= |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_Settings= |
|
22 |
Image_format= |
|
23 |
imprimir= |
|
24 |
Load_Raster_Layer= |
|
25 |
Load_Vector_Layer= |
|
26 |
Loads_raster_layers_in_gvSIG= |
|
27 |
Loads_vector_layers_in_gvSIG= |
|
28 |
Pagina= |
|
29 |
pagina_atras= |
|
30 |
pagina_delante= |
|
31 |
PDF_format= |
|
32 |
pdf_viewer= |
|
33 |
primera_pagina= |
|
34 |
Remove_action= |
|
35 |
Shows_HTML_or_text_files_in_gvSIG= |
|
36 |
Shows_image_files_in_gvSIG= |
|
37 |
Shows_PDF_files_in_gvSIG= |
|
38 |
Shows_SVG_files_in_gvSIG= |
|
39 |
SVG_format= |
|
40 |
ultima_pagina= |
|
41 |
valor_incorrecto= |
|
42 |
View_Tools_Query= |
|
0 | 43 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text_pt.properties | ||
---|---|---|
1 |
#Translations for language [pt] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=Aceitar |
|
5 |
Action= |
|
6 |
Actions= |
|
7 |
Add_action= |
|
8 |
Advanced_Hyperlink= |
|
9 |
Campo=Campo |
|
10 |
Cancel=Cancelar |
|
11 |
Capa=Capa |
|
12 |
de=of |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink= |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension= |
|
17 |
HTML_and_text_formats= |
|
18 |
Hyperlink= |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_Settings= |
|
22 |
Image_format= |
|
23 |
imprimir= |
|
24 |
Load_Raster_Layer= |
|
25 |
Load_Vector_Layer= |
|
26 |
Loads_raster_layers_in_gvSIG= |
|
27 |
Loads_vector_layers_in_gvSIG= |
|
28 |
Pagina= |
|
29 |
pagina_atras= |
|
30 |
pagina_delante= |
|
31 |
PDF_format= |
|
32 |
pdf_viewer= |
|
33 |
primera_pagina= |
|
34 |
Remove_action= |
|
35 |
Shows_HTML_or_text_files_in_gvSIG= |
|
36 |
Shows_image_files_in_gvSIG= |
|
37 |
Shows_PDF_files_in_gvSIG= |
|
38 |
Shows_SVG_files_in_gvSIG= |
|
39 |
SVG_format= |
|
40 |
ultima_pagina= |
|
41 |
valor_incorrecto= |
|
42 |
View_Tools_Query= |
|
0 | 43 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text_sr.properties | ||
---|---|---|
1 |
#Translations for language [sr] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=Prihvati |
|
5 |
Action= |
|
6 |
Actions= |
|
7 |
Add_action= |
|
8 |
Advanced_Hyperlink= |
|
9 |
Campo=Polje |
|
10 |
Cancel=Odustani |
|
11 |
Capa=Lejer |
|
12 |
de=od |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink= |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension= |
|
17 |
HTML_and_text_formats= |
|
18 |
Hyperlink= |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_Settings= |
|
22 |
Image_format= |
|
23 |
imprimir= |
|
24 |
Load_Raster_Layer= |
|
25 |
Load_Vector_Layer= |
|
26 |
Loads_raster_layers_in_gvSIG= |
|
27 |
Loads_vector_layers_in_gvSIG= |
|
28 |
Pagina= |
|
29 |
pagina_atras= |
|
30 |
pagina_delante= |
|
31 |
PDF_format= |
|
32 |
pdf_viewer= |
|
33 |
primera_pagina= |
|
34 |
Remove_action= |
|
35 |
Shows_HTML_or_text_files_in_gvSIG= |
|
36 |
Shows_image_files_in_gvSIG= |
|
37 |
Shows_PDF_files_in_gvSIG= |
|
38 |
Shows_SVG_files_in_gvSIG= |
|
39 |
SVG_format= |
|
40 |
ultima_pagina= |
|
41 |
valor_incorrecto= |
|
42 |
View_Tools_Query= |
|
0 | 43 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/config/text_de.properties | ||
---|---|---|
1 |
#Translations for language [de] |
|
2 |
#Tue May 12 10:57:39 CEST 2009 |
|
3 |
10_paginas_delante= |
|
4 |
Aceptar=OK |
|
5 |
Action= |
|
6 |
Actions= |
|
7 |
Add_action= |
|
8 |
Advanced_Hyperlink= |
|
9 |
Campo=Feld |
|
10 |
Cancel=Abbrechen |
|
11 |
Capa=Layer |
|
12 |
de=von |
|
13 |
diez_paginas_atras= |
|
14 |
Enable_hyperlink= |
|
15 |
Error\ reading\ layer\ fields= |
|
16 |
Extension= |
|
17 |
HTML_and_text_formats= |
|
18 |
Hyperlink= |
|
19 |
Hyperlink__field_value_is_not_valid_file= |
|
20 |
Hyperlink_linked_field_doesnot_exist= |
|
21 |
Hyperlink_Settings= |
|
22 |
Image_format= |
|
23 |
imprimir= |
|
24 |
Load_Raster_Layer= |
|
25 |
Load_Vector_Layer= |
|
26 |
Loads_raster_layers_in_gvSIG= |
|
27 |
Loads_vector_layers_in_gvSIG= |
|
28 |
Pagina= |
|
29 |
pagina_atras= |
|
30 |
pagina_delante= |
|
31 |
PDF_format= |
|
32 |
pdf_viewer= |
|
33 |
primera_pagina= |
|
34 |
Remove_action= |
|
35 |
Shows_HTML_or_text_files_in_gvSIG= |
|
36 |
Shows_image_files_in_gvSIG= |
|
37 |
Shows_PDF_files_in_gvSIG= |
|
38 |
Shows_SVG_files_in_gvSIG= |
|
39 |
SVG_format= |
|
40 |
ultima_pagina= |
|
41 |
valor_incorrecto= |
|
42 |
View_Tools_Query= |
|
0 | 43 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/build.number | ||
---|---|---|
1 |
#Build Number for ANT. Do not edit! |
|
2 |
#Fri Jun 05 12:57:53 CEST 2009 |
|
3 |
build.number=1268 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/lib/copyright.txt | ||
---|---|---|
1 |
The following libraries are used in the project: |
|
2 |
|
|
3 |
- JPEDAL: A library to show PDF files. |
|
4 |
Homepage: http://www.jpedal.org/ |
|
5 |
License: GPL (http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt) |
|
6 |
|
|
7 |
- Bouncy Castle Crypto API (bcprov): A Java cryptography library, used by |
|
8 |
JPEDAL to open encrypted PDFs. |
|
9 |
Homepage: http://www.bouncycastle.org/ |
|
10 |
License: |
|
11 |
Copyright (c) 2000 - 2006 |
|
12 |
The Legion Of The Bouncy Castle (http://www.bouncycastle.org) |
|
13 |
Permission is hereby granted, free of charge, to any person obtaining a copy |
|
14 |
of this software and associated documentation files (the "Software"), to deal |
|
15 |
in the Software without restriction, including without limitation the rights |
|
16 |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
17 |
copies of the Software, and to permit persons to whom the Software is |
|
18 |
furnished to do so, subject to the following conditions: |
|
19 |
The above copyright notice and this permission notice shall be included in all |
|
20 |
copies or substantial portions of the Software. |
|
21 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
22 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
23 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
24 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
25 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
26 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
|
27 |
SOFTWARE. |
|
0 | 28 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/src/org/gvsig/hyperlink/AbstractHyperLinkPanel.java | ||
---|---|---|
1 |
package org.gvsig.hyperlink; |
|
2 |
|
|
3 |
import java.io.File; |
|
4 |
import java.io.IOException; |
|
5 |
import java.net.URI; |
|
6 |
|
|
7 |
import javax.swing.JPanel; |
|
8 |
|
|
9 |
import com.iver.andami.PluginServices; |
|
10 |
|
|
11 |
/** |
|
12 |
* This class extends JPanel and implements IExtensioBuilder. Provides the methods that will |
|
13 |
* be reimplemented by the descendant class. Creates a panel that shows the content of a |
|
14 |
* URI. The necessary code that allows to show the content of the URI is provided by the |
|
15 |
* descendant class. Implmenting IExtenssionBuilder this class and its the descendant |
|
16 |
* provides a point of extension for other extensions. |
|
17 |
*/ |
|
18 |
public abstract class AbstractHyperLinkPanel extends JPanel { |
|
19 |
protected URI document; |
|
20 |
public AbstractHyperLinkPanel(URI doc) { |
|
21 |
super(); |
|
22 |
document = doc; |
|
23 |
} |
|
24 |
|
|
25 |
public URI getURI() { |
|
26 |
return document; |
|
27 |
} |
|
28 |
|
|
29 |
/** |
|
30 |
* Tries to make an absolute url from a relative one, |
|
31 |
* and returns true if the URL is valid. |
|
32 |
* false otherwise |
|
33 |
* @return |
|
34 |
*/ |
|
35 |
protected boolean checkAndNormalizeURI() { |
|
36 |
if (document==null) { |
|
37 |
PluginServices.getLogger().warn(PluginServices.getText(this, "Hyperlink_linked_field_doesnot_exist")); |
|
38 |
return false; |
|
39 |
} |
|
40 |
else if (!document.isAbsolute()) { |
|
41 |
try { |
|
42 |
// try as a relative path |
|
43 |
File file = new File(document.toString()).getCanonicalFile(); |
|
44 |
if (!file.exists()) { |
|
45 |
PluginServices.getLogger().warn(PluginServices.getText(this, "Hyperlink_linked_field_doesnot_exist")); |
|
46 |
return false; |
|
47 |
} |
|
48 |
document = file.toURI(); |
|
49 |
} catch (IOException e) { |
|
50 |
PluginServices.getLogger().warn(PluginServices.getText(this, "Hyperlink_linked_field_doesnot_exist")); |
|
51 |
return false; |
|
52 |
} |
|
53 |
} |
|
54 |
return true; |
|
55 |
} |
|
56 |
} |
|
0 | 57 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/src/org/gvsig/hyperlink/AbstractActionManager.java | ||
---|---|---|
1 |
package org.gvsig.hyperlink; |
|
2 |
|
|
3 |
import java.util.Map; |
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
public abstract class AbstractActionManager implements ILinkActionManager { |
|
8 |
public boolean hasPanel() { |
|
9 |
return false; |
|
10 |
} |
|
11 |
|
|
12 |
public Object create() { |
|
13 |
return this; |
|
14 |
} |
|
15 |
|
|
16 |
public Object create(Object[] args) { |
|
17 |
return this; |
|
18 |
} |
|
19 |
|
|
20 |
public Object create(Map args) { |
|
21 |
return this; |
|
22 |
} |
|
23 |
|
|
24 |
} |
|
0 | 25 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/src/org/gvsig/hyperlink/ILinkActionManager.java | ||
---|---|---|
1 |
package org.gvsig.hyperlink; |
|
2 |
|
|
3 |
import java.net.URI; |
|
4 |
|
|
5 |
import com.iver.utiles.extensionPoints.IExtensionBuilder; |
|
6 |
|
|
7 |
/** |
|
8 |
* TODO document this interface |
|
9 |
* This interface must be implemented by format managers for the |
|
10 |
* hyperlink tool. A manager is able to load an specific file, either |
|
11 |
* by loading it in an AbstractHyperLinkPanel or by opening the proper |
|
12 |
* program to do the task. |
|
13 |
* |
|
14 |
* Format managers must be registered in the ExtensionPoint named |
|
15 |
* "HyperLinkAction" in order to be available in the HyperLink tool. |
|
16 |
* |
|
17 |
* @author cesar |
|
18 |
* |
|
19 |
*/ |
|
20 |
public interface ILinkActionManager extends IExtensionBuilder { |
|
21 |
|
|
22 |
public void showDocument(URI doc) throws UnsupportedOperationException; |
|
23 |
|
|
24 |
public boolean hasPanel(); |
|
25 |
|
|
26 |
public AbstractHyperLinkPanel createPanel(URI doc) throws UnsupportedOperationException; |
|
27 |
|
|
28 |
public String getActionCode(); |
|
29 |
|
|
30 |
public String getName(); |
|
31 |
|
|
32 |
public String getDescription(); |
|
33 |
} |
|
0 | 34 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/src/org/gvsig/hyperlink/layers/VectLayerManager.java | ||
---|---|---|
1 |
package org.gvsig.hyperlink.layers; |
|
2 |
|
|
3 |
import java.awt.geom.Point2D; |
|
4 |
import java.io.File; |
|
5 |
import java.net.URI; |
|
6 |
import java.net.URISyntaxException; |
|
7 |
import java.util.ArrayList; |
|
8 |
import java.util.BitSet; |
|
9 |
import java.util.Map; |
|
10 |
|
|
11 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
12 |
import com.hardcode.gdbms.engine.data.DataSource; |
|
13 |
import com.iver.andami.PluginServices; |
|
14 |
import com.iver.andami.messages.NotificationManager; |
|
15 |
import com.iver.cit.gvsig.exceptions.visitors.VisitorException; |
|
16 |
import com.iver.cit.gvsig.fmap.layers.FBitSet; |
|
17 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
|
18 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
|
19 |
import com.iver.cit.gvsig.fmap.layers.ReadableVectorial; |
|
20 |
import com.iver.cit.gvsig.fmap.layers.SelectableDataSource; |
|
21 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.AlphanumericData; |
|
22 |
|
|
23 |
public class VectLayerManager implements ILinkLayerManager { |
|
24 |
private FLyrVect _layer = null; |
|
25 |
|
|
26 |
public URI[] getLink(Point2D point, double tolerance, String fieldName, String fileExtension) { |
|
27 |
FLyrVect lyrVect = (FLyrVect) _layer; |
|
28 |
FBitSet newBitSet; |
|
29 |
BitSet bitset; |
|
30 |
ArrayList uriList; |
|
31 |
|
|
32 |
//Construimos el BitSet (V?ctor con componentes BOOLEAN) con la consulta que |
|
33 |
//hacemos a la capa. |
|
34 |
|
|
35 |
try { |
|
36 |
newBitSet = lyrVect.queryByPoint(point, tolerance); |
|
37 |
bitset = newBitSet; |
|
38 |
} catch (ReadDriverException e1) { |
|
39 |
PluginServices.getLogger().error(e1); |
|
40 |
return null; |
|
41 |
} catch (VisitorException e1) { |
|
42 |
PluginServices.getLogger().error(e1); |
|
43 |
return null; |
|
44 |
} |
|
45 |
|
|
46 |
//Si el bitset creado no est? vac?o creamos el vector de URLS correspondientes |
|
47 |
//a la consulta que hemos hecho. |
|
48 |
|
|
49 |
if (bitset!=null){ |
|
50 |
try { |
|
51 |
if (lyrVect instanceof AlphanumericData) { |
|
52 |
|
|
53 |
DataSource ds = ((AlphanumericData) lyrVect).getRecordset(); |
|
54 |
ds.start(); |
|
55 |
//boolean exist=false; |
|
56 |
int idField; |
|
57 |
//Creo el vector de URL?s con la misma longitud que el bitset |
|
58 |
uriList = new ArrayList(); |
|
59 |
|
|
60 |
//Consigo el identificador del campo pasandole como par?metro el |
|
61 |
//nombre del campo del ?nlace |
|
62 |
idField = ds.getFieldIndexByName(fieldName); |
|
63 |
if (idField != -1){ |
|
64 |
//Recorremos el BitSet siguiendo el ejmplo de la clase que se |
|
65 |
//proporciona en la API |
|
66 |
int i = 0; |
|
67 |
for (int j = bitset.nextSetBit(0); j >= 0; |
|
68 |
j = bitset.nextSetBit(j + 1)){ |
|
69 |
//Creamos el fichero con el nombre del campo y la extensi?n. |
|
70 |
String fieldValue=ds.getFieldValue(j, idField).toString(); |
|
71 |
if (!fieldValue.equals("")) { |
|
72 |
try { |
|
73 |
uriList.add(getURI(fieldValue, fileExtension)); |
|
74 |
} catch (URISyntaxException e) { |
|
75 |
NotificationManager.addWarning(PluginServices.getText(this, "Hyperlink__field_value_is_not_valid_file"), e); |
|
76 |
} |
|
77 |
} |
|
78 |
} |
|
79 |
ds.stop(); |
|
80 |
return (URI[]) uriList.toArray(new URI[0]); |
|
81 |
} |
|
82 |
ds.stop(); |
|
83 |
}else { |
|
84 |
PluginServices.getLogger().error("Hyperlink error. FLyrVect class hierarchy changed??"); |
|
85 |
} |
|
86 |
} catch (ReadDriverException e) { |
|
87 |
PluginServices.getLogger().error(e); |
|
88 |
} |
|
89 |
} |
|
90 |
return new URI[0]; |
|
91 |
} |
|
92 |
|
|
93 |
protected URI getURI(String baseURI, String extension) throws URISyntaxException { |
|
94 |
String stringURI; |
|
95 |
if (extension.equals("")) { |
|
96 |
stringURI = baseURI; |
|
97 |
} |
|
98 |
else if (extension.startsWith(".")) { |
|
99 |
stringURI = baseURI+extension; |
|
100 |
} |
|
101 |
else { |
|
102 |
stringURI = baseURI+"."+extension; |
|
103 |
} |
|
104 |
File file = new File(stringURI); |
|
105 |
if (file.exists()) { |
|
106 |
return file.toURI(); |
|
107 |
} |
|
108 |
else { |
|
109 |
return new URI(stringURI); |
|
110 |
} |
|
111 |
} |
|
112 |
|
|
113 |
public FLayer getLayer() { |
|
114 |
return _layer; |
|
115 |
} |
|
116 |
|
|
117 |
public void setLayer(FLayer layer) throws IncompatibleLayerException { |
|
118 |
try { |
|
119 |
_layer = (FLyrVect) layer; |
|
120 |
} |
|
121 |
catch (ClassCastException ex) { |
|
122 |
throw new IncompatibleLayerException(ex); |
|
123 |
} |
|
124 |
} |
|
125 |
|
|
126 |
public Object create() { |
|
127 |
return this; |
|
128 |
} |
|
129 |
|
|
130 |
public Object create(Object[] args) { |
|
131 |
return this; |
|
132 |
} |
|
133 |
|
|
134 |
public Object create(Map args) { |
|
135 |
return this; |
|
136 |
} |
|
137 |
|
|
138 |
public URI[][] getLink(Point2D point, double tolerance, String[] fieldName, String fileExtension) { |
|
139 |
FLyrVect lyrVect = (FLyrVect) _layer; |
|
140 |
FBitSet newBitSet; |
|
141 |
BitSet bitset; |
|
142 |
URI uri[][]= null; |
|
143 |
|
|
144 |
//Construimos el BitSet (V?ctor con componentes BOOLEAN) con la consulta que |
|
145 |
//hacemos a la capa. |
|
146 |
try { |
|
147 |
newBitSet = lyrVect.queryByPoint(point, tolerance); |
|
148 |
} catch (ReadDriverException e1) { |
|
149 |
PluginServices.getLogger().error(e1); |
|
150 |
return null; |
|
151 |
} catch (VisitorException e1) { |
|
152 |
PluginServices.getLogger().error(e1); |
|
153 |
return null; |
|
154 |
} |
|
155 |
bitset = newBitSet; |
|
156 |
|
|
157 |
//Si el bitset creado no est? vac?o creamos el vector de URLS correspondientes |
|
158 |
//a la consulta que hemos hecho. |
|
159 |
|
|
160 |
if (bitset!=null){ |
|
161 |
try { |
|
162 |
if (lyrVect instanceof AlphanumericData) { |
|
163 |
|
|
164 |
DataSource ds = ((AlphanumericData) lyrVect).getRecordset(); |
|
165 |
ds.start(); |
|
166 |
//boolean exist=false; |
|
167 |
int idField; |
|
168 |
//Creo el vector de URL?s con la misma longitud que el bitset |
|
169 |
uri = new URI[bitset.length()][fieldName.length]; |
|
170 |
|
|
171 |
//Recorremos el BitSet siguiendo el ejmplo de la clase que se |
|
172 |
//proporciona en la API |
|
173 |
for (int geomNumber = bitset.nextSetBit(0); geomNumber >= 0; |
|
174 |
geomNumber = bitset.nextSetBit(geomNumber + 1)) |
|
175 |
{ |
|
176 |
for (int fieldCount=0; fieldCount<fieldName.length; fieldCount++) { |
|
177 |
// get the field ID using the field name |
|
178 |
idField = ds.getFieldIndexByName(fieldName[fieldCount]); |
|
179 |
if (idField!=-1) { |
|
180 |
String auxField=ds.getFieldValue(geomNumber, idField).toString(); |
|
181 |
if(auxField.startsWith("http:/")){ |
|
182 |
try { |
|
183 |
uri[geomNumber][fieldCount] = new URI(auxField); |
|
184 |
} catch (URISyntaxException e) { |
|
185 |
PluginServices.getLogger().error(e); |
|
186 |
} |
|
187 |
} |
|
188 |
else{ |
|
189 |
File file =new File(ds.getFieldValue(geomNumber, idField).toString()); |
|
190 |
uri[geomNumber][fieldCount] = file.toURI(); |
|
191 |
} |
|
192 |
} |
|
193 |
else { |
|
194 |
PluginServices.getLogger().error("Hyperlink error. Field "+fieldName[fieldCount]+"doesn't exist!!"); |
|
195 |
uri[geomNumber][fieldCount] = null; |
|
196 |
} |
|
197 |
} |
|
198 |
|
|
199 |
} |
|
200 |
ds.stop(); |
|
201 |
return uri; |
|
202 |
}else { |
|
203 |
PluginServices.getLogger().error("Hyperlink error. FLyrVect class hierarchy changed??"); |
|
204 |
} |
|
205 |
} catch (ReadDriverException e) { |
|
206 |
PluginServices.getLogger().error(e); |
|
207 |
} |
|
208 |
} |
|
209 |
return new URI[0][0]; |
|
210 |
} |
|
211 |
|
|
212 |
public String[] getFieldCandidates() { |
|
213 |
ReadableVectorial reader = _layer.getSource(); |
|
214 |
try { |
|
215 |
SelectableDataSource dataSource = reader.getRecordset(); |
|
216 |
ArrayList fields = new ArrayList(); |
|
217 |
int fieldType; |
|
218 |
for (int i=0; i<dataSource.getFieldCount(); i++) { |
|
219 |
fieldType = dataSource.getFieldType(i); |
|
220 |
if (fieldType==java.sql.Types.VARCHAR |
|
221 |
|| fieldType==java.sql.Types.LONGVARCHAR |
|
222 |
|| fieldType==java.sql.Types.CHAR |
|
223 |
|| fieldType==java.sql.Types.BIGINT |
|
224 |
|| fieldType==java.sql.Types.INTEGER |
|
225 |
|| fieldType==java.sql.Types.NUMERIC |
|
226 |
|| fieldType==java.sql.Types.SMALLINT |
|
227 |
|| fieldType==java.sql.Types.TINYINT) { |
|
228 |
fields.add(dataSource.getFieldName(i)); |
|
229 |
} |
|
230 |
} |
|
231 |
return (String[]) fields.toArray(new String[0]); |
|
232 |
} catch (ReadDriverException e) { |
|
233 |
NotificationManager.addError(PluginServices.getText(this,"Error reading layer fields"), e); |
|
234 |
} |
|
235 |
return new String[0]; |
|
236 |
} |
|
237 |
|
|
238 |
} |
|
0 | 239 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/src/org/gvsig/hyperlink/layers/ILinkLayerManager.java | ||
---|---|---|
1 |
package org.gvsig.hyperlink.layers; |
|
2 |
|
|
3 |
import java.awt.geom.Point2D; |
|
4 |
import java.net.URI; |
|
5 |
|
|
6 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
|
7 |
|
|
8 |
public interface ILinkLayerManager { |
|
9 |
public void setLayer(FLayer layer) throws IncompatibleLayerException; |
|
10 |
|
|
11 |
public FLayer getLayer(); |
|
12 |
//public AbstractLinkProperties getLinkProperties(); |
|
13 |
|
|
14 |
public URI[] getLink(Point2D point, double tolerance, String fieldName, String fileExtension); |
|
15 |
|
|
16 |
public URI[][] getLink(Point2D point, double tolerance, String[] fieldName, String fileExtension); |
|
17 |
|
|
18 |
public String[] getFieldCandidates(); |
|
19 |
} |
|
0 | 20 |
tags/gvsig_sextante-0.2.0-1231/extensions/extHyperlink/src/org/gvsig/hyperlink/layers/IncompatibleLayerException.java | ||
---|---|---|
1 |
package org.gvsig.hyperlink.layers; |
|
2 |
|
|
3 |
public class IncompatibleLayerException extends Exception { |
|
4 |
|
|
5 |
public IncompatibleLayerException(Throwable ex) { |
|
6 |
super(ex); |
|
7 |
} |
|
8 |
|
|
9 |
} |
|
0 | 10 |
Also available in: Unified diff