Revision 11783

View differences:

tags/Anotaciones_Build_3/extensions/extAnnotations/.project
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>extAnnotations</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/Anotaciones_Build_3/extensions/extAnnotations/config/text.properties
1
#text.properties
2
annotations=Anotaciones
3
annotation=Anotaci\u00f3n
4
annotation_preferences=Preferencias de las anotationes
5
annotation_tools=Herramientas de anotaciones
6
centered=Centrado
7
create_annotation_layer=Crea capa de anotaciones
8
change_options_of_annotations=Cambio opciones de las anotaciones
9
descripcion_de_crear_capa_de_anotaciones_nueva=<HTML>Con esta herramienta puede crear una capa basada <br>en otra ya existente que le permita realizar un etiquetado avanzado. <br>Cambia la visualizaci\u00f3n de la capa seleccionada mostrando el valor<br> de uno de sus campos.</HTML>
10
duplicate=Control de los duplicados
11
duplicate.none=Ninguno
12
fontcolor=Color del texto
13
fontheight=Altura del texto
14
fontstyle=Estilo del texto
15
fontrotate=Rotaci?n del texto
16
fonttext=Texto
17
fonttype=Tipo de fuente
18
modify_annotation=Modificar anotaci?n
19
none=Ninguno
20
options=Opciones
21
over_write=Sobreescribir
22
seleccione_el_campo_de_texto_que_desea_que_se_utilize_para_mostrar_la_nueva_capa=<HTML>Seleccione el campo a etiquetar.</HTML>
23
text=Texto
24
units_of_annotations=Unidades de las anotationes
0 25

  
tags/Anotaciones_Build_3/extensions/extAnnotations/config/about.htm
1
<html>
2
  <head>
3
    <title>Extesi&oacute;n de la Aplicaci&oacute;n para el manejo de capas de anotaciones.</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">&copy; Copyright
15
      Generalitat Valenciana, IVER T.I. 2007.</font></td>
16
  </tr>
17
</table>
18
  <h3>Extensi&oacute;n de la Aplicaci&oacute;n para el para el manejo de capas de anotaciones.</h3>
19
  <p><br><br><b> Build Number: #build.number#</b></p>
20
  </body>
21
</html>
0 22

  
tags/Anotaciones_Build_3/extensions/extAnnotations/config/text_en.properties
1
#text_en.properties
2
annotations=Annotations
3
annotation=Annotation
4
annotation_preferences=Annotation preferences
5
annotation_tools=Annotation tools
6
centered=Centered
7
create_annotation_layer=Create annotation layer
8
change_options_of_annotations=Change options of annotations
9
descripcion_de_crear_capa_de_anotaciones_nueva=<HTML>A new layer can be created using this tool, <br>based on an already existing layer which allows to perform <br>advanced labeling. It changes the visualization of the<br> selected layer showing the value of one of its fields.</HTML>
10
duplicate=Duplicate control.
11
duplicate.none=None
12
fontcolor=Font color
13
fontheight=Font height
14
fontstyle=Font style
15
fontrotate=Font rotate
16
fonttext=Texto
17
fonttype=Font type
18
modify_annotation=Modify annotation
19
none=None
20
options=Options
21
over_write=Over write
22
seleccione_el_campo_de_texto_que_desea_que_se_utilize_para_mostrar_la_nueva_capa=<HTML>Choose the field to label.</HTML>
23
text=Text
24
units_of_annotations=Units of annotations
0 25

  
tags/Anotaciones_Build_3/extensions/extAnnotations/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
		<extension class-name="com.iver.cit.gvsig.Annotation_Extension"
8
			description="Annotation extension"
9
			active="true"
10
			priority="1">
11

  
12
			<menu text="Capa/export_to/annotation" action-command="ANNOTATIONLAYER"
13
				tooltip="create_annotation_layer"
14
				priority="999"/>
15
		</extension>
16
		<extension class-name="com.iver.cit.gvsig.Annotation_ToolExtension"
17
			description="Annotation tool extension"
18
			active="true"
19
			priority="2">
20

  
21
			<menu text="Capa/modify_annotation" action-command="MODIFYANNOTATION" icon="images/Annotation.png"
22
 				tooltip="modify_annotation"
23
				priority="2"/>
24
			<tool-bar name="annotation_tools" position="5">
25
				<selectable-tool icon="images/Annotation.png" action-command="MODIFYANNOTATION"  tooltip="modify_annotation" position="3"/>
26
			</tool-bar>
27
		</extension>
28
	</extensions>
29
</plugin-config>
0 30

  
tags/Anotaciones_Build_3/extensions/extAnnotations/build.number
1
#Build Number for ANT. Do not edit!
2
#Thu May 24 09:13:31 CEST 2007
3
build.number=3
0 4

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/install.xml
1
<installation version="1.0">
2
	<info>
3
		<!--<appname>gvSIG_1.0_alpha</appname>-->
4
		<appname>gvSIG_annotations_0.1</appname>
5
		<appversion>0.1</appversion>
6
		<authors>
7
			<author name="Generalitat Valenciana. Conselleria d'Infraestructures i Transport" email="" />
8
			<author name="Iver Tecnologías de la Información S.A." email="" />
9
		</authors>
10
		<url>http://www.gvsig.gva.es/</url>
11
		<javaversion>1.4</javaversion>
12
	</info>
13

  
14
	<guiprefs height="600" resizable="yes" width="800">
15
		<laf name="liquid">
16
			<os family="unix" />
17
		</laf>
18
		<laf name="liquid">
19
			<os family="windows" />
20
		</laf>
21
	</guiprefs>
22

  
23
	<locale>
24
		<langpack iso3="spa"/>
25
		<langpack iso3="val"/>
26
		<langpack iso3="eng"/>
27
		<langpack iso3="cat"/>
28
		<langpack iso3="chn"/>
29
		<langpack iso3="cze"/>
30
		<langpack iso3="dan"/>
31
		<langpack iso3="deu"/>
32
		<langpack iso3="fin"/>
33
		<langpack iso3="fra"/>
34
		<langpack iso3="glg"/>
35
		<langpack iso3="hun"/>
36
		<langpack iso3="ita"/>
37
		<langpack iso3="jpn"/>
38
		<langpack iso3="mys"/>
39
		<langpack iso3="ned"/>
40
		<langpack iso3="nor"/>
41
		<langpack iso3="pol"/>
42
		<langpack iso3="por"/>
43
		<langpack iso3="rom"/>
44
		<langpack iso3="rus"/>
45
		<langpack iso3="scg"/>
46
		<langpack iso3="svk"/>
47
		<langpack iso3="swe"/>
48
		<langpack iso3="ukr"/>
49
	</locale>
50

  
51
	<resources>
52
		<res src="resources/gpl.txt" id="LicencePanel.licence"/>
53
		<res src="resources/LEEME.html" id="HTMLInfoPanel.info"/>
54
		<res src="resources/images/Logo_gvsig_gva.jpg" id="Installer.image"/>
55
		<res src="resources/userInputSpec.xml" id="userInputSpec.xml"/>
56
                <parsable os="linux" targetfile="resources/userInputSpec.xml"/>
57
                <res src="resources/userInputLang.xml_val" id="userInputLang.xml_val" />
58
                <res src="resources/userInputLang.xml_spa" id="userInputLang.xml_spa" />
59
	</resources>
60

  
61
	<panels>
62
		<panel classname="HTMLInfoPanel"/>
63
		<panel classname="LicencePanel"/>
64
		<panel classname="PacksPanel"/>
65
		<panel classname="UserInputPanel"/>
66
		<panel classname="InstallPanel"/>
67
		<panel classname="SimpleFinishPanel"/>
68
	</panels>
69

  
70
	<packs>
71

  
72
		<pack name="Extensión Anotaciones" required="yes">
73
			<description>Extensión para el manejo de capas de anotaciones.</description>
74
			<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/com.iver.cit.gvsig.annotation" override="true"/>
75
			<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/com.iver.cit.gvsig/lib" src="extensiones/com.iver.cit.gvsig/lib/gvsig-annotation.jar" override="true"/>
76
		</pack>
77

  
78

  
79
	</packs>
80

  
81
</installation>
0 82

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/distribucion.sh
1
#!/bin/bash
2

  
3
# Si se produce un error, salimos inmediatamente
4
set -e
5

  
6

  
7
# Obtenemos el locale
8
LOC=`echo $LANG | sed 's/_.*//'`
9

  
10
# Comprobar que estamos en el directorio adecuado
11
if [ "$LOC" = "es" ] ; then
12
  ERROR_BASEDIR="Este script debe invocarse desde el directorio  \'install\' del proyecto"
13
else
14
  ERROR_BASEDIR="This script must be run from the \'install\' directory of the project"
15
fi
16
if [ ! -d ../../install/instalador-gvSIG-lin ] || [ ! -d ../../install/instalador-gvSIG-win ] || [ ! -d ../../_fwAndami ] ; then
17
        echo $ERROR_BASEDIR
18
        exit 1 ;
19
fi
20

  
21
DIR_BASE=`pwd`
22
GVSIG_INSTALLDIR=`readlink -f ../../install`
23
ANDAMI_DIR=`readlink -f ../../_fwAndami`
24

  
25
source variables.sh
26
# Get a version with format 1_0_alpha
27
UNDERSCORE_VERSION=`echo $FULLVERSION | sed 'y/./_/'`
28
# Get a version with format 10_alpha
29
BRIEFVERSION=`echo $FULLVERSION | sed 's/\.//'`
30
# The name of the dir which will be ZIPed, containing the resulting installer
31
INSTALLER_DIR="$APPNAME"-$FULLVERSION\_installer
32
JARNAME="$APPNAME"-"$FULLVERSION".jar
33
# The extension targets on the this version of gvSIG:
34
GVSIG_VERSION=1.0
35

  
36
BUILDNUMBER=`sed -n 's/build.number=//p' "$ANDAMI_DIR"/gvSIG/extensiones/"$MAIN_INSTALL_PLUGIN"/build.number`
37

  
38
#ZIPNAME="$APPNAME"-"$UNDERSCORE_VERSION"\_"$BUILDNUMBER".zip
39
DIR_LIN=.
40
DIR_WIN=.
41

  
42
DIR_LIN_GVSIG="$GVSIG_INSTALLDIR"/instalador-gvSIG-lin
43
DIR_WIN_GVSIG="$GVSIG_INSTALLDIR"/instalador-gvSIG-win
44

  
45

  
46
WINDOWSZIP="$APPNAME"-"$BRIEFVERSION"\_"$BUILDNUMBER"-windows-i586.7z
47
LINUXZIP="$APPNAME"-"$BRIEFVERSION"\_"$BUILDNUMBER"-linux-i586.tgz
48

  
49
LINUXBIN="$APPNAME"-"$BRIEFVERSION"\_"$BUILDNUMBER"-linux-i586.bin
50

  
51
WINDOWSEXE="$APPNAME"-"$BRIEFVERSION"\_"$BUILDNUMBER"-windows-i586.exe
52

  
53
#Directorios
54
#OUTPUT_DIR=/mnt/sercartlin/grupo-sig-ca/Testing/Versiones/v"$FULLVERSION"\_"$BUILDNUMBER"
55
OUTPUT_DIR="$TARGET_DIR"/v"$FULLVERSION"\_"$BUILDNUMBER"
56
PATH_SOURCE_EXT="$ANDAMI_DIR"/gvSIG/extensiones
57

  
58

  
59
echo "*****************"
60
echo "      BASE       "
61
echo "*****************"
62

  
63
cd "$DIR_BASE"/
64
rm bin -rf
65
mkdir -p bin/gvSIG/extensiones
66
#cp "$DIR_WIN_GVSIG"/installer_files/LEEME "$DIR_WIN_GVSIG"installer_files/LLIG-ME "$DIR_WIN_GVSIG"installer_files/README bin
67
cp resources/gpl.txt bin
68
# No enlazamos directamente el directorio lib para no incluir el directorio CVS
69
mkdir -p bin/lib
70
cd "$DIR_BASE"/bin/lib
71
for i in "$ANDAMI_DIR"/lib/*.jar ; do
72
  ln -s "$i" .
73
done
74
for i in "$ANDAMI_DIR"/lib/*.zip ; do
75
  ln -s "$i" .
76
done
77
cd "$DIR_BASE"/
78
ln -s "$ANDAMI_DIR"/andami.jar bin/
79
ln -s "$ANDAMI_DIR"/castor.properties bin/
80
#cp resources/andami-config.xml bin
81
echo OK.
82

  
83

  
84
# Para Windows
85
#Copiamos el lanzador y sus tracuciones al tmpResources
86
rm -Rf tmpResources
87
mkdir tmpResources
88
cp -R "$GVSIG_INSTALLDIR"/launcher/izpack-launcher-1.3/dist/* ./tmpResources
89
mv ./tmpResources/launcher-Win32.exe ./tmpResources/gvSIG.exe
90
#Quitamos el ini, manifest y los CVS
91
rm ./tmpResources/*.ini ./tmpResources/*.manifest
92
find ./tmpResources -name CVS -type d -exec rm -rf {} 2> /dev/null ';' || true
93
echo OK.
94

  
95
# Estas extensiones se copian directamente al directorio destino, ya que no vamos a dar
96
# opcion a no instalarlas, son obligatorias
97
cd "$DIR_BASE"
98
i=0
99
while [ ! -z ${MANDATORY_EXTENSIONS[$i]} ]
100
do
101
  echo ln -s "$PATH_SOURCE_EXT"/${MANDATORY_EXTENSIONS[$i]} bin/gvSIG/extensiones
102
  ln -s "$PATH_SOURCE_EXT"/${MANDATORY_EXTENSIONS[$i]} bin/gvSIG/extensiones
103
  i=`expr $i + 1`
104
done
105

  
106
echo "*****************"
107
[ $LOC = "es" ] && echo "   EXTENSIONES   "
108
[ $LOC != "es" ] && echo "   EXTENSIONS   "
109
echo "*****************"
110

  
111
rm -rf extensiones
112
mkdir extensiones
113

  
114
i=0
115
while [ ! -z ${EXTENSIONS[$i]} ]
116
do
117
  [ $LOC = "es" ] && echo "Enlazando "${EXTENSIONS[$i]}
118
  [ $LOC != "es" ] && echo "Linking "${EXTENSIONS[$i]}
119
  echo ln -s "$PATH_SOURCE_EXT"/${EXTENSIONS[$i]} extensiones
120
  ln -s "$PATH_SOURCE_EXT"/${EXTENSIONS[$i]} extensiones
121
  i=`expr $i + 1`
122
done
123

  
124
echo "*****************"
125
echo "    INST     "
126
echo "*****************"
127
# Generar el instalador (jar)
128
cd "$DIR_BASE"/
129
rm "$JARNAME" -f
130
ant -DJARNAME="$JARNAME" -DGVSIG_VERSION="$GVSIG_VERSION" -DAPPNAME="$APPNAME"
131

  
132

  
133
echo "******************"
134
[ $LOC = "es" ] && echo " GENERAR DISTRIB "
135
[ $LOC != "es" ] && echo " GENERATE DISTRIB "
136
echo "******************"
137
# Generar el tar.gz para Linux y el EXE para Windows
138

  
139
mkdir -p "$OUTPUT_DIR"
140
echo "- Linux"
141
## Nueva instalacion para linux
142
rm -Rf "$INSTALLER_DIR"
143
mkdir -p "$INSTALLER_DIR"/tmp_gvSIGInstall
144
cp "$JARNAME" "$INSTALLER_DIR"/tmp_gvSIGInstall
145
cd "$INSTALLER_DIR"
146
chmod u+x "$GVSIG_INSTALLDIR"/launcher/izpack-launcher-1.3_linux/dist/launcher-Linux
147
cp -R "$GVSIG_INSTALLDIR"/launcher/izpack-launcher-1.3_linux/dist/* ./tmp_gvSIGInstall
148
chmod a+x ./tmp_gvSIGInstall/launcher-Linux
149
find . -name CVS -type d -exec rm -rf {} 2> /dev/null ';' || true
150

  
151
sed "s/%JARNAME%/$JARNAME/" ./tmp_gvSIGInstall/launcher.ini > ./tmp_gvSIGInstall/launcher.ini.bak
152
mv ./tmp_gvSIGInstall/launcher.ini.bak ./tmp_gvSIGInstall/launcher.ini;
153

  
154
tar -cvzf ./tmp.tgz ./tmp_gvSIGInstall
155
echo '#!/bin/sh' > xx.tmp
156
lcount=`cat xx.tmp "$GVSIG_INSTALLDIR"/launcher/izpack-launcher-1.3_linux/h_gvSIG-install.sh | wc -l`
157
lcount=$(($lcount+2)) # sumamos dos: uno por la linea siguiente y otro para el inicio
158
echo "lcount=$lcount" >> xx.tmp
159
cat xx.tmp "$GVSIG_INSTALLDIR"/launcher/izpack-launcher-1.3_linux/h_gvSIG-install.sh ./tmp.tgz  > "$LINUXBIN"
160
rm xx.tmp
161
chmod a+x "$LINUXBIN"
162
mv "$LINUXBIN" "$OUTPUT_DIR"
163
cd "$DIR_BASE"/
164
rm -Rf "$INSTALLER_DIR"
165
## Fin Nueva instalacion para linux
166

  
167
## Para Windows
168
echo "- Windows"
169
#set -x
170
cd "$DIR_BASE"
171
rm -Rf "$INSTALLER_DIR"
172

  
173
mkdir "$INSTALLER_DIR"
174
cp -aR "$GVSIG_INSTALLDIR"/launcher/izpack-launcher-1.3/dist/* "$INSTALLER_DIR"
175
rm -f "$INSTALLER_DIR"/install.bat
176

  
177
find "$INSTALLER_DIR" -name CVS -type d -exec rm -rf {} 2> /dev/null ';' || true
178

  
179
## hacemos las sustituciones de la variable
180
sed "s/%JARNAME%/$JARNAME/" "$INSTALLER_DIR"/launcher-Win32.ini > "$INSTALLER_DIR"/launcher-Win32.ini.bak
181
mv "$INSTALLER_DIR"/launcher-Win32.ini.bak "$INSTALLER_DIR"/launcher-Win32.ini;
182

  
183

  
184
mv "$JARNAME" "$INSTALLER_DIR"
185
cd "$INSTALLER_DIR"
186

  
187
if [ -f  "$DIR_BASE"/"$WINDOWSZIP" ] ; then
188
	rm -f "$DIR_BASE"/"$WINDOWSZIP"
189
fi
190
chmod u+x "$GVSIG_INSTALLDIR"/launcher/7z/7za
191
"$GVSIG_INSTALLDIR"/launcher/7z/7za a -r "$DIR_BASE"/"$WINDOWSZIP" *
192
cd -
193
sed "s/%TITLE%/$APPNAME-$BRIEFVERSION\_$BUILDNUMBER/" "$GVSIG_INSTALLDIR"/launcher/7z/dist_config.txt > dist_config.txt
194
cat "$GVSIG_INSTALLDIR"/launcher/7z/7zS.sfx  dist_config.txt "$WINDOWSZIP" > "$WINDOWSEXE"
195

  
196
###
197

  
198

  
199
rm dist_config.txt
200
rm "$WINDOWSZIP"
201

  
202
rm -Rf "$INSTALLER_DIR"
203

  
204
mv "$WINDOWSEXE" "$OUTPUT_DIR"
205

  
206
# Limpiamos tmpResources
207
cd "$DIR_BASE"/
208
rm -r ./tmpResources
209
cd -
210

  
211
## Limpiamos
212

  
213
rm -rf extensiones
214
rm -rf bin
215

  
216
echo "******************"
217
[ $LOC = "es" ] && echo " GENERAR FUENTES "
218
[ $LOC != "es" ] && echo " GENERATE SOURCES "
219
echo "******************"
220

  
221
cd ..
222
ant generate-source-package
223
mv dist-src/gv*-src.zip "$OUTPUT_DIR"
224
cd -
225

  
226

  
227
echo "*****************"
228
echo "    FIN     "
229
echo "*****************"
230

  
231
echo ""
232
echo "Generados los ficheros:"
233
echo "$OUTPUT_DIR"
234
ls -lh "$OUTPUT_DIR"
235
cd "$DIR_BASE"
0 236

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/resources/userInputLang.xml_val
1
<langpack>
2
  <str id="text.label" txt="Ruta a gvSIG:"/>
3
</langpack>
0 4

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/resources/userInputLang.xml_spa
1
<langpack>
2
  <str id="text.label" txt="Ruta a gvSIG:"/>
3
</langpack>
0 4

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/resources/Readme-Annotation.txt
1
Annotations Plugin version 1.0 (Build number #build.number#):
2

  
3
Before starting, check the following points:
4

  
5
1.- Download the sources for gvSIG v1.0.2. Follow the procedure described in the ?Readme.txt? file to setup a working development environment.
6

  
7
*** Compilation
8

  
9
1.- Uncompress the pilot package into the source folder just created (gvSIG-1_0_2-src). Note: some files in the  'binaries' folder must be overwritten.
10

  
11
2.- (Only if using Eclipse) Import the projects:
12
  *1: Pick the the File/Import menu command.
13
  *2: Choose 'Existing Projects into workspace' and hit 'Next'
14
  *3: With the option 'Select root directory' press 'Browse...'
15
  *4: Locate the workspace folder (normally, this should be the default) and hit 'Accept'.
16
  *5: Click on 'Deselect All'
17
  *6: Mark the following project from the list: extAnnotations.
18
  *7: Click on 'Finish'.
19

  
20
3.- Run the 'build.xml' in the project 'extAnnotations' (using  Ant or Eclipse).
21

  
22
For further assistance, please subscribe to the gvSIG developer list and send your questions there (see in http://www.gvsig.gva.es).
23

  
24
Thanks for developing on gvSIG.
25

  
26
Regards,
27

  
28
The gvSIG Team
0 29

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/resources/userInputLang.xml_cat
1
<langpack>
2
  <str id="text.label" txt="Ruta a gvSIG:"/>
3
</langpack>
0 4

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/resources/userInputLang.xml_fra
1
<langpack>
2
  <str id="text.label" txt="Path to gvSIG:"/>
3
</langpack>
0 4

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/resources/userInputLang.xml_eng
1
<langpack>
2
  <str id="text.label" txt="Path to gvSIG:"/>
3
</langpack>
0 4

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/resources/userInputSpec.xml
1
<userInput>
2
	<panel order="0">
3
		<field 	type="search" 
4
				variable="INSTALL_PATH"
5
				size="45">
6
  			<description align="left" />
7
  			<spec 	txt="Path to gvSIG:" 
8
		  			id="text.label"
9
  					checkfilename="bin/andami.jar"
10
        			type="directory" 
11
        			result="directory">
12
  			<choice value="/usr/local/gvSIG_1.0" os="unix" />
13
  			<choice value="/opt/gvSIG_1.0" os="unix" />
14
  			<choice value="$USER_HOME/gvSIG_1.0" os="unix" />
15
  			<choice value="C:\Archivos de Programa\gvSIG_1.0" os="windows" />
16
  			<choice value="C:\Program Files\gvSIG_1.0" os="windows" />
17
  			</spec>
18
		</field>
19
	</panel>
20
</userInput>
21

  
0 22

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/resources/LEEME.html
1
<html>
2
<head>
3
<style type="text/css">
4
html, body, h1, h2, h3, h4, div, p, ul, li, input {
5
   font-family: Arial, Helvetica, sans-serif;
6
}
7

  
8
h1 {
9
   font-size: large;
10
}
11

  
12
h2 {
13
   font-size: large;
14
}
15

  
16
h3 {
17
   font-size: medium;
18
}
19
</style>
20
</head>
21
<body>
22
<h1>gvSIG, el SIG en software libre de la Generalitat Valenciana
23
(http://www.gvsig.gva.es).</h1>
24

  
25
<h2>Autores:</h2>
26
<ul>
27
<li>Generalitat Valenciana
28
 (Conselleria d'Infraestructures i Transport).</li>
29
<li>Iver Tecnolog&iacute;as de la Informaci&oacute;n S.A.</li>
30
</ul>
31

  
32
<p>Software con licencia GNU/GPL
33
(http://www.fsf.org/licensing/licenses/gpl.html)</p>
34

  
35
<p>Contacto:
36
	gvsig@gva.es<p>
37

  
38
<h2>Requisitos de la aplicaci&oacute;n:</h2>
39
<h3>Sistema</h3>
40
<ul>
41
<li>M&iacute;nimos: Pentium III / 256 MB RAM.</li>
42
<li>Recomendables: Pentium IV / 512 MB RAM.</li>
43
<li>Sistemas operativos: plataformas Windows y Linux.
44
 Probado en Win98/XP, Linux Suse 8.2/9.0/9.2 y Linux Debian (Lliurex).</li>
45
</ul>
46

  
47
<h3>Software instalado</h3> (disponible en http://www.gvsig.gva.es o en http://java.sun.com)
48
<ul>
49
<li>M&aacute;quina Virtual Java 1.4.2 (06 o superior).</li>
50
<li>JAI (Java Advanced Imaging).</li>
51
<li>JAI Image I/O.</li>
52
</ul>
53

  
54
<p style="text-align:justify">Nota: Las librer&iacute;as JAI y JAI Image I/O deben estar instaladas sobre la M&aacute;quina Virtual Java que gvSIG utilice en su ejecuci&oacute;n. Si se instala una nueva JVM en el sistema y se usa para ejecutar gvSIG ser&aacute; indispensable instalar las librer&iacute;as sobre &eacute;sta (gvSIG se ejecuta con la JVM que tenga por defecto el sistema operativo; para saber cu&aacute;l es, ejecutar <span style="monospace">"java&nbsp;-version"</span> en un interfaz de comandos o consola).</p>
55

  
56
<h2>M&aacute;s informaci&oacute;n y soporte en:</h2>
57
<h3> Web oficial del proyecto:</h3>
58
	http://www.gvsig.gva.es
59

  
60
<h3>Listas de distribuci&oacute;n:</h3>
61
<span style="monospace"> http://runas.cap.gva.es/mailman/listinfo/gvsig_usuarios</span> (soporte para usuarios).
62
<span style="monospace"> http://runas.cap.gva.es/mailman/listinfo/gvsig_desarrolladores</span> (soporte para desarrolladores).
63
<span style="monospace"> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional</span> (soporte para desarrolladores o usuarios de habla no hispana).
64

  
65
</body>
66
</html>
0 67

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/resources/userInputLang.xml_deu
1
<langpack>
2
  <str id="text.label" txt="Path to gvSIG:"/>
3
</langpack>
0 4

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/resources/userInputLang.xml_ita
1
<langpack>
2
  <str id="text.label" txt="Path to gvSIG:"/>
3
</langpack>
0 4

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/resources/Leeme-Annotation.txt
1
Plugin Anotaciones versi?n 1.0 (Build Number #build.number#):
2

  
3
Antes de comenzar compruebe los siguientes puntos:
4

  
5
1.- Descargue los fuentes de la v1.0.2 de gvSIG. Siga los pasos all? indicados en el archivo 'Leeme.txt' para obtener un entorno de desarrollo funcional.
6

  
7
*** Compilaci?n
8

  
9
1.- Descomprima este paquete dentro del directorio de fuentes que acaba de preparar ( gvSIG-1_0_2-src).
10

  
11
2.- (S?lo si usa eclipse) Importe los proyectos que acaba de descomprimir:
12
  *1: Men? File/Import.
13
  *2: Seleccione 'Existing Projects into workspace' y 'Next'
14
  *3: Con la opci?n 'Select root directory' pulse 'Browse...'
15
  *4: Sit?ese en el directorio del workspace (normalmente el dialogo ya se encuentra en ?l) y pulse 'Aceptar'.
16
  *5: Pulse 'Deselect All'
17
  *6: Marque los siguientes proyectos de la lista: extAnnotations.
18
  *7: Pulse 'Finish'.
19

  
20
3.- Ejecute el 'build.xml' del proyecto 'extAnnotations' (usando ant o eclipse).
21

  
22
Ante cualquier problema:
23

  
24
Apuntese a la lista de desarrolladores de gvSIG y pregunte all? (http://www.gvsig.gva.es).
25

  
26
Gracias por desarrollar sobre gvSIG.
27

  
28
Un saludo.
29

  
30
Equipo gvSIG.
0 31

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/resources/userInputLang.xml_por
1
<langpack>
2
  <str id="text.label" txt="Path to gvSIG:"/>
3
</langpack>
0 4

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/resources/gpl.txt
1
	GNU GENERAL PUBLIC LICENSE
2
	Version 2, June 1991
3

  
4
	 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
5

  
6
		Preamble
7

  
8
	The licenses for most software are designed to take away your freedom to share and change it.  By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users.  This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it.  (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.)  You can apply it to your programs, too.
9

  
10
	When we speak of free software, we are referring to freedom, not price.  Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
11

  
12
	To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
13

  
14
	For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have.  You must make sure that they, too, receive or can get the source code.  And you must show them these terms so they know their
15
rights.
16

  
17
	We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
18

  
19
	Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software.  If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
20

  
21
	Finally, any free program is threatened constantly by software	patents.  We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary.  To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
22

  
23
	The precise terms and conditions for copying, distribution and modification follow.
24

  
25
				GNU GENERAL PUBLIC LICENSE
26
	TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
27

  
28
	0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License.  The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language.  (Hereinafter, translation is included without limitation in the term "modification".)  Each licensee is addressed as "you".
29

  
30
	Activities other than copying, distribution and modification are not covered by this License; they are outside its scope.  The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
31

  
32
1.	You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
33

  
34
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
35

  
36
2.	You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
37

  
38
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
39

  
40
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
41

  
42
c)	If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License.  (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
43

  
44
These requirements apply to the modified work as a whole.  If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works.  But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
45

  
46
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
47

  
48
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
49

  
50
3.	You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
51

  
52
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
53

  
54
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
55

  
56
c)	Accompany it with the information you received as to the offer to distribute corresponding source code.  (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
57

  
58
The source code for a work means the preferred form of the work for making modifications to it.  For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable.  However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
59

  
60
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
61

  
62
4.	You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License.  Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License.
63
However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
64

  
65
5.	You are not required to accept this License, since you have not signed it.  However, nothing else grants you permission to modify or distribute the Program or its derivative works.  These actions are prohibited by law if you do not accept this License.  Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
66

  
67
6.	Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions.  You may not impose any further restrictions on the recipients' exercise of the rights granted herein.
68
You are not responsible for enforcing compliance by third parties to this License.
69

  
70
7.	If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License.  If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all.  For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
71

  
72
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
73

  
74
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices.  Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
75

  
76
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
77

  
78
8.	If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded.  In such case, this License incorporates the limitation as if written in the body of this License.
79

  
80
9.	The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time.  Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
81

  
82
Each version is given a distinguishing version number.  If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation.  If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
83

  
84
10.	If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission.  For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this.  Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
85

  
86
NO WARRANTY
87

  
88
11.	BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
89

  
90
12.	IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
91

  
92
END OF TERMS AND CONDITIONS
93

  
94
How to Apply These Terms to Your New Programs
95

  
96
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
97

  
98
To do so, attach the following notices to the program.  It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
99

  
100
<one line to give the program's name and a brief idea of what it does.> Copyright (C) <year>  <name of author>
101

  
102
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
103

  
104
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
105

  
106
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
107

  
108

  
109
Also add information on how to contact you by electronic and paper mail.
110

  
111
If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
112

  
113
Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
114
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
115

  
116
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License.  Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
117

  
118
You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary.  Here is a sample; alter the names:
119

  
120
Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.
121

  
122
<signature of Ty Coon>, 1 April 1989
123
Ty Coon, President of Vice
124

  
125
This General Public License does not permit incorporating your program into proprietary programs.  If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library.  If this is what you want to do, use the GNU Library General Public License instead of this License.
0 126

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/resources/userInputLang.xml_cze
1
<langpack>
2
  <str id="text.label" txt="Path to gvSIG:"/>
3
</langpack>
0 4

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/HOWTO-BUILD.txt
1
 C?MO GENERAR EL INSTALADOR:
2
 ===========================
3
- Solo ejecutable desde Linux
4
- gvSIG debe estar correctamente construido en ../_fwAndami/bin
5
- El plugin principal debe dejar un fichero 'build.number' dentro de su directorio de andami, que indicara el numero del build para la distribuci?n.
6
- Lanzar el target 'distribucion' del build.xml del plugin principal (solo para plugins).
7
- El proyecto 'install' debe estar presente en la ra?z del workspace (contiene el Izpack, entre otras cosas)
8
- En el fichero variables.sh hay algunas variables que nos pueden interesar, que permiten personalizar el nombre del plugin, la versi?n, el directorio destino, las extensiones incluidas, etc. La variable  APPNAME normalmente valdr? "gvSIG", pero puede tiener nombre si estamos empaquetando una extensi?n (por ejemplo,  "nomenclatorIGN").
9
- Definir los packs adecuados en el fichero XML de configuraci?n (install.xml), y revisar el fichero en general.
10
- En el fichero resources/userInputSpec.xml modificar los directorios candidatos, si se ha producido un cambio de la versi?n de gvSIG sobre la que queremos instalar
11
- Lanzar el script distribucion.sh desde el directorio donde se encuentra (ejemplo: "cd workspace/extXXX/install ; ./distribucion.sh ").
0 12

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/build.xml
1
<project name="instalador-gvSIG" default="init" basedir=".">
2
	<!--
3
	<property name="dir_inst" location="C:\Archivos de programa"/>
4
	<property name="base_dir" location="./"/>		
5
	<property name="dir_libs" location="C:\Archivos de programa\IzPack\lib"/>
6
	<property name="vers" location="0.6"/>
7
	<property name="izpack_dir" location="C:\Archivos de programa\IzPack"/>
8
	-->
9
	
10
	<property name="dir_inst" location="/usr/local"/>
11
	<property name="base_dir" location="./"/>		
12
	<property name="izpack_dir" location="../../install/IzPack"/>
13
	<property name="dir_libs" location="${izpack_dir}/lib"/>
14
	
15
	<taskdef name="izpack" classpath="${dir_libs}/compiler.jar" classname="com.izforge.izpack.ant.IzPackTask"/>
16
	
17
	<target name="init">
18
		<izpack input="install.xml" 
19
				output="${JARNAME}" 
20
				installerType="standard" 
21
				basedir="${base_dir}" 
22
				izPackDir="${izpack_dir}/"/>
23
	</target>
24
	
25
	<target name="clean">
26
		<delete>
27
			<fileset dir=".">
28
			    <include name="**.zip"/>
29
			</fileset>
30
		</delete>
31
		<delete dir="bin" />
32
		<delete dir="extensions" />
33
	</target>
34
	
35
</project>
0 36

  
tags/Anotaciones_Build_3/extensions/extAnnotations/install/variables.sh
1
#!/bin/sh
2

  
3
export APPNAME=gvsig_annotations
4
export FULLVERSION='0.1'
5
#export FULLVERSION='1.0'
6
export TARGET_DIR=/tmp/"$APPNAME"/versiones
7
#export TARGET_DIR=/mnt/sercartlin/grupo-sig-ca/Testing/Versiones/
8
export MAIN_INSTALL_PLUGIN=com.iver.cit.gvsig.annotation #Nombre del plugin que proporciona el 'build.nuber' para la distribucion
9

  
10
## estas extensiones se muestran en los packs, y se puede elegir instalarlos o no
11
## (el fichero install.xml tambien debe estar actualizado para reflejar esto)
12
EXTENSIONS=(
13
"$MAIN_INSTALL_PLUGIN"
14
com.iver.cit.gvsig
15
)
0 16

  
tags/Anotaciones_Build_3/extensions/extAnnotations/src/com/iver/cit/gvsig/Annotation_ToolExtension.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 com.iver.cit.gvsig;
43

  
44
import com.iver.andami.PluginServices;
45
import com.iver.andami.ui.mdiManager.IWindow;
46
import com.iver.cit.gvsig.fmap.MapContext;
47
import com.iver.cit.gvsig.fmap.MapControl;
48
import com.iver.cit.gvsig.fmap.layers.Annotation_Layer;
49
import com.iver.cit.gvsig.fmap.layers.FLayer;
50
import com.iver.cit.gvsig.fmap.tools.Behavior.Behavior;
51
import com.iver.cit.gvsig.fmap.tools.Behavior.MouseMovementBehavior;
52
import com.iver.cit.gvsig.fmap.tools.Behavior.PointBehavior;
53
import com.iver.cit.gvsig.project.documents.view.gui.View;
54
import com.iver.cit.gvsig.project.documents.view.tool.Annotation_ModifyListener;
55
import com.iver.cit.gvsig.project.documents.view.toolListeners.StatusBarListener;
56

  
57

  
58
/**
59
 * Class that extends of the tool InfoToolExtension and
60
 * override the methods that interests us to change its behavior.
61
 *
62
 * @author Vicente Caballero Navarro
63
 */
64
public class Annotation_ToolExtension
65
    extends com.iver.cit.gvsig.InfoToolExtension {
66

  
67
	/* (non-Javadoc)
68
	 * @see com.iver.andami.plugins.IExtension#execute(java.lang.String)
69
	 */
70
	public void execute(String s) {
71
        IWindow window = PluginServices.getMDIManager().getActiveWindow();
72

  
73
        if (window instanceof View) {
74
            MapControl mapCtrl = ((View) window).getMapControl();
75

  
76
            if (s.compareTo("MODIFYANNOTATION") == 0) {
77
                if (mapCtrl.getMapTool("centerviewtopoint") == null) {
78
                    StatusBarListener sbl = new StatusBarListener(mapCtrl);
79
                    Annotation_ModifyListener chl = new Annotation_ModifyListener(mapCtrl);
80
                    mapCtrl.addMapTool("modifyannotation",
81
                        new Behavior[] {
82
                            new PointBehavior(chl),
83
                            new MouseMovementBehavior(sbl)
84
                        });
85
                }
86
            }
87

  
88
   			if (s.compareTo("MODIFYANNOTATION") == 0) {
89
   				mapCtrl.setTool("modifyannotation");
90
   			}
91
        }
92
    }
93

  
94
    /* (non-Javadoc)
95
     * @see com.iver.andami.plugins.IExtension#initialize()
96
     */
97
    public void initialize() {
98
        super.initialize();
99
    }
100

  
101
    /* (non-Javadoc)
102
     * @see com.iver.andami.plugins.IExtension#isEnabled()
103
     */
104
    public boolean isEnabled() {
105
        return super.isEnabled();
106
    }
107

  
108
    /* (non-Javadoc)
109
     * @see com.iver.andami.plugins.IExtension#isVisible()
110
     */
111
    public boolean isVisible() {
112
        IWindow window = PluginServices.getMDIManager().getActiveWindow();
113

  
114
        if (window instanceof View) {
115
            MapContext mapContext = ((View) window).getMapControl()
116
                                     .getMapContext();
117
            FLayer[] layers=mapContext.getLayers().getActives();
118
            for (int i=0;i<layers.length;i++){
119
            	if (layers[i] instanceof Annotation_Layer){
120
            		if (layers[i].isEditing())
121
            			return true;
122
            	}
123
            }
124
        }
125

  
126
        return false;
127
    }
128
}
0 129

  
tags/Anotaciones_Build_3/extensions/extAnnotations/src/com/iver/cit/gvsig/Annotation_Extension.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004 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.
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff