Revision 23733
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/.settings/org.eclipse.core.runtime.prefs | ||
---|---|---|
1 |
#Mon Jul 23 13:59:18 CEST 2007 |
|
2 |
eclipse.preferences.version=1 |
|
3 |
instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true |
|
4 |
line.separator=\n |
|
0 | 5 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/.settings/org.eclipse.core.resources.prefs | ||
---|---|---|
1 |
#Wed Jan 11 12:57:27 CET 2006 |
|
2 |
eclipse.preferences.version=1 |
|
3 |
encoding/<project>=ISO-8859-1 |
|
0 | 4 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/.settings/cvs/Tag | ||
---|---|---|
1 |
TCatalogYNomenclator_v1_1_0_1005 |
|
0 | 2 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/.settings/cvs/Repository | ||
---|---|---|
1 |
gvSIG-project/applications/appCatalogYNomenclatorClient/.settings |
|
0 | 2 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/.settings/cvs/Root | ||
---|---|---|
1 |
:extssh:jorpiell@www.gvsig.org:/var/lib/cvs-gvSIG |
|
0 | 2 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/.settings/cvs/Entries | ||
---|---|---|
1 |
/org.eclipse.core.resources.prefs/1.1/Wed Jan 11 12:29:32 2006//TCatalogYNomenclator_v1_1_0_1005 |
|
2 |
/org.eclipse.core.runtime.prefs/1.1/Wed Jan 11 12:29:32 2006//TCatalogYNomenclator_v1_1_0_1005 |
|
0 | 3 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/build.xml | ||
---|---|---|
1 |
<project name="Generar extension en Andami" default="build-for-eclipse" basedir="."> |
|
2 |
<description> |
|
3 |
Instala el plugin en Andami |
|
4 |
</description> |
|
5 |
<!-- set global properties for this build --> |
|
6 |
<property name="fmap" location="../libFMap"/> |
|
7 |
<property name="andami" location="../_fwAndami"/> |
|
8 |
<property name="build" location="bin"/> |
|
9 |
<property name="src" location="src"/> |
|
10 |
<property name="dist" location="dist"/> |
|
11 |
<property name="lib" location="lib"/> |
|
12 |
<property name="andamiLibs" location="${andami}/lib"/> |
|
13 |
<property name="fmapLibs" location="${fmap}/lib"/> |
|
14 |
<property name="targetDir" location="../extCatalogAndGazetteer/dist/lib"/> |
|
15 |
<property name="jarName" value="catCliProto.jar"/> |
|
16 |
<!--<property name="compile-classpath" value="${lib}/a2j_v2-2.0.9.jar:${lib}/a2jruntime.jar:${lib}/activation.jar:${lib}/commons-beanutils.jar:${lib}/commons-codec.jar:${lib}/commons-httpclient-2.0.2.jar:${lib}/commons-logging.jar:${lib}/cql-java-1.0.0.jar:${lib}/junit.jar:${lib}/jzkit2_core-2.0.0.jar:${lib}/jzkit2_z3950_plugin-2.0.0.jar:${lib}/log4j-1.2.4.jar:${lib}/mail.jar:${lib}/soap.jar:${lib}/ostermillerutils_1_04_03_for_java_1_4.jar:${lib}/spring.jar:${lib}/xalan.jar:${lib}/amic-util.jar:${andamiLibs}/xerces_2_5_0.jar:${andamiLibs}/iver-utiles.jar:${andamiLibs}/gvsig-i18n.jar"/>--> |
|
17 |
<import file="../binaries/ant/utilities.xml"/> |
|
18 |
|
|
19 |
|
|
20 |
<target name="init"> |
|
21 |
<!-- Create the time stamp --> |
|
22 |
<tstamp/> |
|
23 |
<!-- Create the build directory structure used by compile --> |
|
24 |
<buildnumber/> |
|
25 |
</target> |
|
26 |
|
|
27 |
<target name="import-build-number"> |
|
28 |
<copy todir="."> |
|
29 |
<fileset file="${buildNumberFile}"/> |
|
30 |
</copy> |
|
31 |
</target> |
|
32 |
|
|
33 |
<target name="build-for-eclipse" |
|
34 |
description="generates the jar and moves it to the target dir, but doesn't compile the sources" |
|
35 |
depends="create-jar,move-to-targetDir"> |
|
36 |
<!-- this is not normally used, as extCatalog already builds appCatalog, but |
|
37 |
we include it here and make something meaningful, just in case the user |
|
38 |
wants to build only appCatalog.--> |
|
39 |
</target> |
|
40 |
|
|
41 |
<target name="batch-build" |
|
42 |
description="compile the source" |
|
43 |
depends="compile,create-jar,move-to-targetDir"> |
|
44 |
<!-- Compile the Java code from ${src} to ${bin} --> |
|
45 |
</target> |
|
46 |
|
|
47 |
<target name="compile"> |
|
48 |
<mkdir dir="${build}"/> |
|
49 |
<antcall target="gvSIG-import-build-number"/> |
|
50 |
<mkdir dir="${build}" /> |
|
51 |
<loadEclipseClasspath project="${basedir}"/> |
|
52 |
<gvSIG-javac |
|
53 |
classpath="${eclipseClasspath}"/> |
|
54 |
</target> |
|
55 |
|
|
56 |
<target name="create-jar"> |
|
57 |
<mkdir dir="${dist}" /> |
|
58 |
<jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
|
59 |
</target> |
|
60 |
|
|
61 |
<target name="move-to-targetDir"> |
|
62 |
<mkdir dir="${targetDir}" /> |
|
63 |
<move todir="${targetDir}"> |
|
64 |
<fileset file="${dist}/${jarName}"/> |
|
65 |
</move> |
|
66 |
</target> |
|
67 |
|
|
68 |
<target name="clean" |
|
69 |
description="clean up" > |
|
70 |
<!-- Delete the ${build} and ${dist} directory trees --> |
|
71 |
<delete includeemptydirs="true" failonerror="no"> |
|
72 |
<fileset dir="${build}" includes="**"/> |
|
73 |
<fileset dir="${dist}" includes="**"/> |
|
74 |
</delete> |
|
75 |
</target> |
|
76 |
|
|
77 |
</project> |
|
78 |
|
|
0 | 79 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/text.properties | ||
---|---|---|
1 |
catalog_search=B\u00fasqueda de Geodatos |
|
2 |
gazetteer_search=Localizar por Nomencl\u00e1tor |
|
3 |
gazetteer_connect=Localizar por Nomencl\u00e1tor |
|
4 |
metadata_catalog=B\u00fasqueda de Geodatos - Conexi\u00f3n |
|
5 |
metadata_tree=\u00c1rbol del Metadato |
|
6 |
search_results=Resultados de la b\u00fasqueda |
|
7 |
resourceTypeColumn=Tipo |
|
8 |
resourceLinkColumn=Enlace |
|
9 |
resourceShowColumn=Ver |
|
10 |
concordancia=Concordancia |
|
11 |
exactSentence=Frase Exacta |
|
12 |
anyWord=Cualquier Palabra |
|
13 |
allWords=Todas las Palabras |
|
14 |
cathegoryAny=cualquiera |
|
15 |
cathegoryBiota=biota |
|
16 |
cathegoryBoundaries=boundaries |
|
17 |
cathegoryClimatologyMeteorologyAtmosphere=climatologyMeteorologyAtmosphere |
|
18 |
cathegoryEconomy=economy |
|
19 |
cathegoryElevation=elevation |
|
20 |
cathegoryEnvironment=environment |
|
21 |
cathegoryFarming=farming |
|
22 |
cathegoryGeoscientificInformation=geoscientificInformation |
|
23 |
cathegoryHealth=health |
|
24 |
cathegoryImageryBaseMapsEarthCover=imageryBaseMapsEarthCover |
|
25 |
cathegoryInlandWaters=inlandWaters |
|
26 |
cathegoryIntelligenceMilitary=intelligenceMilitary |
|
27 |
cathegoryLocation=location |
|
28 |
cathegoryOceans=oceans |
|
29 |
cathegoryPlanningCadastre=planningCadastre |
|
30 |
cathegorySociety=society |
|
31 |
cathegoryStructure=structure |
|
32 |
cathegoryTransportation=transportation |
|
33 |
cathegoryUtilitiesCommunication=utilitiesCommunication |
|
34 |
scaleAny=qualquiera |
|
35 |
scaleI=>1.000.000 |
|
36 |
scaleII=1.000.000 - 250.000 |
|
37 |
scaleIII=250.000 - 50.000 |
|
38 |
scaleIV=50.000 - 10.000 |
|
39 |
scaleV=10.000 - 5000 |
|
40 |
scaleVI=<5.000 |
|
41 |
scale=Escala |
|
42 |
provider=Proveedor |
|
43 |
from=De: |
|
44 |
to=A: |
|
45 |
upperCoordinates=Superiores |
|
46 |
lowerCoordinates=Inferiores |
|
47 |
ULX=ULX: |
|
48 |
ULY=ULY: |
|
49 |
BRX=BRX: |
|
50 |
BRY=BRY: |
|
51 |
abstract=Resumen |
|
52 |
coordinates=Coordenadas |
|
53 |
coordinatesEqual=igual |
|
54 |
coordinatesContains=contiene |
|
55 |
coordinatesEnclose=incluye |
|
56 |
coordinatesFullyOutsideOf=est\u00e1 totalmente fuera de |
|
57 |
title=Titulo |
|
58 |
restrictArea=Restringir el area de B\u00fasqueda |
|
59 |
protocolsGroup=Protocolos |
|
60 |
serverReply=Respuesta del servidor |
|
61 |
serverURL=Introduzca la direcci\u00f3n donde se encuentra el servidor de cat\u00e1logo |
|
62 |
serverURLCat=Introduzca la direcci\u00f3n donde se encuentra el servidor de nomencl\u00e1tor |
|
63 |
database=Nombre de la base de datos |
|
64 |
connectButton=Conectar |
|
65 |
searchButton=Buscar |
|
66 |
results=Resultados |
|
67 |
of=de |
|
68 |
description=Descripcion |
|
69 |
layer=A\u00f1adir Capa |
|
70 |
next=Siquiente |
|
71 |
last=Anterior |
|
72 |
close=Cerrar |
|
73 |
value=Valor |
|
74 |
attributes=Atributos |
|
75 |
keyWords=Palabras Clave |
|
76 |
cathegory=Categor\u00eda |
|
77 |
lastUpdateDate=Fecha de \u00faltima actualizaci\u00f3n |
|
78 |
purpose=Prop\u00f3sito |
|
79 |
errorServerNotFound=No se encuentra el servidor |
|
80 |
errorNotSupportedProtocol=El servidor no soporta el protocolo especificado |
|
81 |
errorNotSupportedCapabilities=Error al hacer un GetCapabilities.Esto puede ser debido a dos razones: O bien ha habido un error al intentar hacer la operaci\u00f3n, o bien el servidor no soporta el protocolo especificado |
|
82 |
errorNotParsedReply=Error al procesar la respuesta. Se ha encontrado el servidor, pero posiblemente no soporta el protocolo especificado |
|
83 |
name=Nombre |
|
84 |
resutsByPage=Resultados por p\u00e1gina |
|
85 |
type=Tipo |
|
86 |
localize=Localizar |
|
87 |
page=P\u00e1gina |
|
88 |
errorNotThesaurusSelected=El protocolo WFS no permite hacer b\u00fasquedas si no se elige un elemento del tesauro |
|
89 |
chooseAttribute=Elige un atributo para hacer la b\u00fasqueda |
|
90 |
errorGetRecords=Se ha producido un error al hacer el getRecords |
|
91 |
anyResult=La b\u00fasqueda no ha producido ning\u00fan resultado |
|
92 |
rootName=Ra\u00edz |
|
93 |
wcsColumn=Cobertura |
|
94 |
wmsColumn=Mapa |
|
95 |
wfsColumn=Feature |
|
96 |
postgisColumn=Postgis |
|
97 |
linkColumn=P\u00e1gina Web |
|
98 |
downloadColumn=Descarga |
|
99 |
errorNotCSWSupportedProtocol=Se ha encontrado el servidor, pero parece ser que no soporta el protocolo CS-W |
|
100 |
errorIsASRWServer=Es un servidor SRW! |
|
101 |
errorServerException=El servidor ha devuelto una excepci\u00f3n |
|
102 |
errorSOAPProtocol=Error en el protocolo SOAP |
|
103 |
errorFENotSupported=De momento solo se pueden hacer querys usando la codificaci\u00f3n FILTER ENCODING que no est\u00e1 soportada por el servidor |
|
104 |
mantainold=Eliminar las busquedas anteriores |
|
105 |
goto=Hacer un zoom a la b\u00fasqueda |
|
106 |
paint=Dibujar el resultado |
|
107 |
aspect=Configuracion de aspecto |
|
108 |
unknown=Desconocido |
|
109 |
cancelSearchButton=Cancelar |
|
110 |
wmsError=Ha ocurrido un error al cargar el mapa |
|
111 |
loadWMS=Carga de WMS |
|
112 |
wfsError=Ha ocurrido un error al cargar la feature |
|
113 |
wfsLoad=Carga de WFS |
|
114 |
wcsError=Ha ocurrido un error al cargar la cobertura |
|
115 |
wcsLoad=Carga de WCS |
|
116 |
postgisError=Ha ocurrido un error al cargar la base de datos |
|
117 |
postgisLoad=Carga de Postgis |
|
118 |
linkError=Ha ocurrido un error al cargar el enlace |
|
119 |
linkLoad=carga de un recurso web |
|
120 |
link=Enlace |
|
121 |
server=Servidor |
|
122 |
layer=Capa |
|
123 |
parameters=Par\u00e1metros |
|
124 |
pluginNotFound=No tienes ninguna extensi\u00f3n para cargar recursos de este tipo |
|
125 |
pluginNotFoundTitle=Carga de capas |
|
126 |
inteligentSearch=B\u00fasqueda inteligente |
|
127 |
inteligentSearchAscii=Todas las formas de la palabra |
|
128 |
reproyectar_aviso=La proyecci\u00F3n de la capa no es igual que la de la vista.\nAVISO\: Puede ser inexacto con algunas transformaciones.\nPor favor, lea la documentaci\u00F3n. |
|
129 |
reproyectar_pregunta=\u00BFDesea reproyectar? |
|
130 |
elementName=ElementName |
|
131 |
propertiesNameWindow=Ventana de propiedades |
|
0 | 132 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/.classpath | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<classpath> |
|
3 |
<classpathentry kind="src" path="src"/> |
|
4 |
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> |
|
5 |
<classpathentry kind="lib" path="lib/a2jruntime.jar"/> |
|
6 |
<classpathentry kind="lib" path="lib/activation.jar"/> |
|
7 |
<classpathentry kind="lib" path="lib/commons-codec.jar"/> |
|
8 |
<classpathentry kind="lib" path="lib/commons-httpclient-2.0.2.jar"/> |
|
9 |
<classpathentry kind="lib" path="lib/commons-logging.jar"/> |
|
10 |
<classpathentry kind="lib" path="lib/log4j-1.2.4.jar"/> |
|
11 |
<classpathentry kind="lib" path="lib/mail.jar"/> |
|
12 |
<classpathentry kind="lib" path="lib/soap.jar"/> |
|
13 |
<classpathentry kind="lib" path="lib/ostermillerutils_1_04_03_for_java_1_4.jar"/> |
|
14 |
<classpathentry kind="lib" path="lib/xalan.jar"/> |
|
15 |
<classpathentry kind="lib" path="lib/amic-util.jar"/> |
|
16 |
<classpathentry kind="lib" path="/_fwAndami/lib/xerces_2_5_0.jar"/> |
|
17 |
<classpathentry kind="lib" path="/_fwAndami/lib/iver-utiles.jar" sourcepath="/libIverUtiles"/> |
|
18 |
<classpathentry kind="lib" path="/_fwAndami/lib/gvsig-i18n.jar"/> |
|
19 |
<classpathentry kind="lib" path="/_fwAndami/lib/xml-apis.jar"/> |
|
20 |
<classpathentry kind="lib" path="lib/a2j_v2-2.0.9.jar"/> |
|
21 |
<classpathentry kind="lib" path="lib/commons-beanutils.jar"/> |
|
22 |
<classpathentry kind="lib" path="lib/cql-java-1.0.0.jar"/> |
|
23 |
<classpathentry kind="lib" path="lib/jzkit2_core-2.0.0.jar" sourcepath="E:/classpath/jzkit2/jzkit2_core/src/java"/> |
|
24 |
<classpathentry kind="lib" path="lib/jzkit2_z3950_plugin-2.0.0.jar" sourcepath="E:/classpath/jzkit2/jzkit2_z3950_plugin/src/java"/> |
|
25 |
<classpathentry kind="lib" path="lib/spring.jar"/> |
|
26 |
<classpathentry kind="lib" path="lib/origin_MODIFIED.jar"/> |
|
27 |
<classpathentry kind="src" path="src-test"/> |
|
28 |
<classpathentry kind="var" path="JUNIT_HOME/junit.jar" sourcepath="ECLIPSE_HOME/plugins/org.eclipse.jdt.source_3.1.1/src/org.junit_3.8.1/junitsrc.zip"/> |
|
29 |
<classpathentry kind="lib" path="/libFMap/lib/remote-clients.jar"/> |
|
30 |
<classpathentry kind="lib" path="/libFMap/lib/kxml2.jar"/> |
|
31 |
<classpathentry kind="lib" path="/libFMap/lib/jts-1.8.jar"/> |
|
32 |
<classpathentry kind="lib" path="/libFMap/lib/jtsio-1.8.jar"/> |
|
33 |
<classpathentry kind="lib" path="/_fwAndami/lib/org.gvsig.exceptions.jar"/> |
|
34 |
<classpathentry kind="output" path="bin"/> |
|
35 |
</classpath> |
|
0 | 36 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/documents/cvs/Repository | ||
---|---|---|
1 |
gvSIG-project/applications/appCatalogYNomenclatorClient/documents |
|
0 | 2 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/documents/cvs/Root | ||
---|---|---|
1 |
:extssh:jorpiell@www.gvsig.org:/var/lib/cvs-gvSIG |
|
0 | 2 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/documents/cvs/Entries | ||
---|---|---|
1 |
/CatalogDoc.sxw/1.1/Wed Jun 15 07:54:40 2005/-kb/TCatalogYNomenclator_v1_1_0_1005 |
|
0 | 2 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/documents/cvs/Tag | ||
---|---|---|
1 |
TCatalogYNomenclator_v1_1_0_1005 |
|
0 | 2 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/.project | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<projectDescription> |
|
3 |
<name>appCatalogAndGazetteerClient</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.jem.workbench.JavaEMFNature</nature> |
|
16 |
<nature>org.eclipse.jdt.core.javanature</nature> |
|
17 |
<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature> |
|
18 |
</natures> |
|
19 |
</projectDescription> |
|
0 | 20 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/src-test/es/gva/cit/catalog/drivers/ExampleNewPanel.java | ||
---|---|---|
1 |
package es.gva.cit.catalog.drivers; |
|
2 |
|
|
3 |
import java.util.Properties; |
|
4 |
|
|
5 |
import javax.swing.JLabel; |
|
6 |
import javax.swing.JTextField; |
|
7 |
|
|
8 |
import es.gva.cit.catalog.ui.search.SearchAditionalPropertiesPanel; |
|
9 |
|
|
10 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
11 |
* |
|
12 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
13 |
* |
|
14 |
* This program is free software; you can redistribute it and/or |
|
15 |
* modify it under the terms of the GNU General Public License |
|
16 |
* as published by the Free Software Foundation; either version 2 |
|
17 |
* of the License, or (at your option) any later version. |
|
18 |
* |
|
19 |
* This program is distributed in the hope that it will be useful, |
|
20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
22 |
* GNU General Public License for more details. |
|
23 |
* |
|
24 |
* You should have received a copy of the GNU General Public License |
|
25 |
* along with this program; if not, write to the Free Software |
|
26 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
27 |
* |
|
28 |
* For more information, contact: |
|
29 |
* |
|
30 |
* Generalitat Valenciana |
|
31 |
* Conselleria d'Infraestructures i Transport |
|
32 |
* Av. Blasco Ib??ez, 50 |
|
33 |
* 46010 VALENCIA |
|
34 |
* SPAIN |
|
35 |
* |
|
36 |
* +34 963862235 |
|
37 |
* gvsig@gva.es |
|
38 |
* www.gvsig.gva.es |
|
39 |
* |
|
40 |
* or |
|
41 |
* |
|
42 |
* IVER T.I. S.A |
|
43 |
* Salamanca 50 |
|
44 |
* 46005 Valencia |
|
45 |
* Spain |
|
46 |
* |
|
47 |
* +34 963163400 |
|
48 |
* dac@iver.es |
|
49 |
*/ |
|
50 |
/* CVS MESSAGES: |
|
51 |
* |
|
52 |
* $Id: ExampleNewPanel.java 537 2007-07-26 11:21:10Z jpiera $ |
|
53 |
* $Log$ |
|
54 |
* Revision 1.1.2.1 2007/07/13 12:00:35 jorpiell |
|
55 |
* Add the posibility to add a new panel |
|
56 |
* |
|
57 |
* |
|
58 |
*/ |
|
59 |
/** |
|
60 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
61 |
*/ |
|
62 |
public class ExampleNewPanel extends SearchAditionalPropertiesPanel{ |
|
63 |
JLabel label = null; |
|
64 |
JTextField text = null; |
|
65 |
|
|
66 |
public ExampleNewPanel(){ |
|
67 |
label = new JLabel(); |
|
68 |
text = new JTextField(); |
|
69 |
setLayout(new java.awt.BorderLayout()); |
|
70 |
label.setText("Label"); |
|
71 |
add(label, java.awt.BorderLayout.WEST); |
|
72 |
add(text, java.awt.BorderLayout.CENTER); |
|
73 |
} |
|
74 |
|
|
75 |
/* |
|
76 |
* (non-Javadoc) |
|
77 |
* @see es.gva.cit.gazetteer.ui.search.SearchAditionalPropertiesPanel#getProperties() |
|
78 |
*/ |
|
79 |
public Properties getProperties() { |
|
80 |
Properties properties = new Properties(); |
|
81 |
properties.put("PROP1", text.getText()); |
|
82 |
return properties; |
|
83 |
} |
|
84 |
|
|
85 |
} |
|
0 | 86 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/src-test/es/gva/cit/catalog/drivers/ExampleNewDriver.java | ||
---|---|---|
1 |
package es.gva.cit.catalog.drivers; |
|
2 |
|
|
3 |
import java.net.URI; |
|
4 |
|
|
5 |
import es.gva.cit.catalog.drivers.AbstractCatalogServiceDriver; |
|
6 |
import es.gva.cit.catalog.drivers.CatalogCapabilities; |
|
7 |
import es.gva.cit.catalog.drivers.DiscoveryServiceCapabilities; |
|
8 |
import es.gva.cit.catalog.drivers.GetRecordsReply; |
|
9 |
import es.gva.cit.catalog.querys.CatalogQuery; |
|
10 |
import es.gva.cit.catalog.schemas.Record; |
|
11 |
import es.gva.cit.catalog.schemas.RecordFactory; |
|
12 |
import es.gva.cit.catalog.ui.search.SearchAditionalPropertiesPanel; |
|
13 |
|
|
14 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
15 |
* |
|
16 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
17 |
* |
|
18 |
* This program is free software; you can redistribute it and/or |
|
19 |
* modify it under the terms of the GNU General Public License |
|
20 |
* as published by the Free Software Foundation; either version 2 |
|
21 |
* of the License, or (at your option) any later version. |
|
22 |
* |
|
23 |
* This program is distributed in the hope that it will be useful, |
|
24 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
25 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
26 |
* GNU General Public License for more details. |
|
27 |
* |
|
28 |
* You should have received a copy of the GNU General Public License |
|
29 |
* along with this program; if not, write to the Free Software |
|
30 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
31 |
* |
|
32 |
* For more information, contact: |
|
33 |
* |
|
34 |
* Generalitat Valenciana |
|
35 |
* Conselleria d'Infraestructures i Transport |
|
36 |
* Av. Blasco Ib??ez, 50 |
|
37 |
* 46010 VALENCIA |
|
38 |
* SPAIN |
|
39 |
* |
|
40 |
* +34 963862235 |
|
41 |
* gvsig@gva.es |
|
42 |
* www.gvsig.gva.es |
|
43 |
* |
|
44 |
* or |
|
45 |
* |
|
46 |
* IVER T.I. S.A |
|
47 |
* Salamanca 50 |
|
48 |
* 46005 Valencia |
|
49 |
* Spain |
|
50 |
* |
|
51 |
* +34 963163400 |
|
52 |
* dac@iver.es |
|
53 |
*/ |
|
54 |
/* CVS MESSAGES: |
|
55 |
* |
|
56 |
* $Id: ExampleNewDriver.java 537 2007-07-26 11:21:10Z jpiera $ |
|
57 |
* $Log$ |
|
58 |
* Revision 1.1.2.1 2007/07/13 12:00:35 jorpiell |
|
59 |
* Add the posibility to add a new panel |
|
60 |
* |
|
61 |
* |
|
62 |
*/ |
|
63 |
/** |
|
64 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
65 |
*/ |
|
66 |
public class ExampleNewDriver extends AbstractCatalogServiceDriver { |
|
67 |
|
|
68 |
/* |
|
69 |
* (non-Javadoc) |
|
70 |
* @see es.gva.cit.catalogClient.drivers.IDiscoveryServiceDriver#getCapabilities(java.net.URI) |
|
71 |
*/ |
|
72 |
public DiscoveryServiceCapabilities getCapabilities(URI uri) { |
|
73 |
return new CatalogCapabilities(); |
|
74 |
} |
|
75 |
|
|
76 |
/* |
|
77 |
* (non-Javadoc) |
|
78 |
* @see es.gva.cit.catalog.drivers.ICatalogServiceDriver#getRecords(java.net.URI, es.gva.cit.catalog.querys.CatalogQuery, int) |
|
79 |
*/ |
|
80 |
public GetRecordsReply getRecords(URI uri, CatalogQuery query, |
|
81 |
int firstRecord) { |
|
82 |
GetRecordsReply reply = new GetRecordsReply(1); |
|
83 |
Record record = RecordFactory.createRecord(uri, null); |
|
84 |
record.setTitle("Record example"); |
|
85 |
record.setAbstract_("Just for testing"); |
|
86 |
reply.addRecord(record); |
|
87 |
return reply; |
|
88 |
} |
|
89 |
|
|
90 |
/* |
|
91 |
* (non-Javadoc) |
|
92 |
* @see es.gva.cit.catalog.drivers.IDiscoveryServiceDriver#getServiceName() |
|
93 |
*/ |
|
94 |
public String getServiceName() { |
|
95 |
return "My catalog service"; |
|
96 |
} |
|
97 |
|
|
98 |
/* |
|
99 |
* (non-Javadoc) |
|
100 |
* @see es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver#getAditionalSearchPanel() |
|
101 |
*/ |
|
102 |
public SearchAditionalPropertiesPanel getAditionalSearchPanel(){ |
|
103 |
return new ExampleNewPanel(); |
|
104 |
} |
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
|
|
109 |
} |
|
0 | 110 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/src-test/es/gva/cit/catalog/drivers/ExampleNewDriverTest.java | ||
---|---|---|
1 |
package es.gva.cit.catalog.drivers; |
|
2 |
|
|
3 |
import javax.swing.UIManager; |
|
4 |
import javax.swing.UnsupportedLookAndFeelException; |
|
5 |
|
|
6 |
import es.gva.cit.catalog.ui.serverconnect.ServerConnectDialog; |
|
7 |
import es.gva.cit.catalog.utils.CatalogDriverRegister; |
|
8 |
|
|
9 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
10 |
* |
|
11 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
12 |
* |
|
13 |
* This program is free software; you can redistribute it and/or |
|
14 |
* modify it under the terms of the GNU General Public License |
|
15 |
* as published by the Free Software Foundation; either version 2 |
|
16 |
* of the License, or (at your option) any later version. |
|
17 |
* |
|
18 |
* This program is distributed in the hope that it will be useful, |
|
19 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
20 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
21 |
* GNU General Public License for more details. |
|
22 |
* |
|
23 |
* You should have received a copy of the GNU General Public License |
|
24 |
* along with this program; if not, write to the Free Software |
|
25 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
26 |
* |
|
27 |
* For more information, contact: |
|
28 |
* |
|
29 |
* Generalitat Valenciana |
|
30 |
* Conselleria d'Infraestructures i Transport |
|
31 |
* Av. Blasco Ib??ez, 50 |
|
32 |
* 46010 VALENCIA |
|
33 |
* SPAIN |
|
34 |
* |
|
35 |
* +34 963862235 |
|
36 |
* gvsig@gva.es |
|
37 |
* www.gvsig.gva.es |
|
38 |
* |
|
39 |
* or |
|
40 |
* |
|
41 |
* IVER T.I. S.A |
|
42 |
* Salamanca 50 |
|
43 |
* 46005 Valencia |
|
44 |
* Spain |
|
45 |
* |
|
46 |
* +34 963163400 |
|
47 |
* dac@iver.es |
|
48 |
*/ |
|
49 |
/* CVS MESSAGES: |
|
50 |
* |
|
51 |
* $Id: ExampleNewDriverTest.java 512 2007-07-24 11:25:43Z jorpiell $ |
|
52 |
* $Log$ |
|
53 |
* Revision 1.1.2.2 2007/07/24 11:25:42 jorpiell |
|
54 |
* The registers has been refactorized |
|
55 |
* |
|
56 |
* Revision 1.1.2.1 2007/07/13 12:00:35 jorpiell |
|
57 |
* Add the posibility to add a new panel |
|
58 |
* |
|
59 |
* |
|
60 |
*/ |
|
61 |
/** |
|
62 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
63 |
*/ |
|
64 |
public class ExampleNewDriverTest { |
|
65 |
|
|
66 |
/** |
|
67 |
* @param args |
|
68 |
*/ |
|
69 |
public static void main(String[] args) { |
|
70 |
CatalogDriverRegister register = CatalogDriverRegister.getInstance(); |
|
71 |
register.register(new ExampleNewDriver()); |
|
72 |
//Get the currently installed look and feel |
|
73 |
UIManager.getLookAndFeel(); |
|
74 |
// Install a different look and feel; specifically, the Windows look and feel |
|
75 |
try { |
|
76 |
UIManager.setLookAndFeel( |
|
77 |
"com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
78 |
} catch (InstantiationException e) { |
|
79 |
} catch (ClassNotFoundException e) { |
|
80 |
} catch (UnsupportedLookAndFeelException e) { |
|
81 |
} catch (IllegalAccessException e) { |
|
82 |
} |
|
83 |
|
|
84 |
new ServerConnectDialog(); |
|
85 |
} |
|
86 |
|
|
87 |
} |
|
0 | 88 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/src-test/es/gva/cit/catalog/utils/URIUtilsTest.java | ||
---|---|---|
1 |
package es.gva.cit.catalog.utils; |
|
2 |
|
|
3 |
import java.net.URI; |
|
4 |
import java.net.URISyntaxException; |
|
5 |
|
|
6 |
import junit.framework.TestCase; |
|
7 |
|
|
8 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
9 |
* |
|
10 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
11 |
* |
|
12 |
* This program is free software; you can redistribute it and/or |
|
13 |
* modify it under the terms of the GNU General Public License |
|
14 |
* as published by the Free Software Foundation; either version 2 |
|
15 |
* of the License, or (at your option) any later version. |
|
16 |
* |
|
17 |
* This program is distributed in the hope that it will be useful, |
|
18 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
19 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
20 |
* GNU General Public License for more details. |
|
21 |
* |
|
22 |
* You should have received a copy of the GNU General Public License |
|
23 |
* along with this program; if not, write to the Free Software |
|
24 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
25 |
* |
|
26 |
* For more information, contact: |
|
27 |
* |
|
28 |
* Generalitat Valenciana |
|
29 |
* Conselleria d'Infraestructures i Transport |
|
30 |
* Av. Blasco Ib??ez, 50 |
|
31 |
* 46010 VALENCIA |
|
32 |
* SPAIN |
|
33 |
* |
|
34 |
* +34 963862235 |
|
35 |
* gvsig@gva.es |
|
36 |
* www.gvsig.gva.es |
|
37 |
* |
|
38 |
* or |
|
39 |
* |
|
40 |
* IVER T.I. S.A |
|
41 |
* Salamanca 50 |
|
42 |
* 46005 Valencia |
|
43 |
* Spain |
|
44 |
* |
|
45 |
* +34 963163400 |
|
46 |
* dac@iver.es |
|
47 |
*/ |
|
48 |
/* CVS MESSAGES: |
|
49 |
* |
|
50 |
* $Id: URIUtilsTest.java,v 1.1.2.1 2007/07/10 11:18:04 jorpiell Exp $ |
|
51 |
* $Log: URIUtilsTest.java,v $ |
|
52 |
* Revision 1.1.2.1 2007/07/10 11:18:04 jorpiell |
|
53 |
* Added the registers |
|
54 |
* |
|
55 |
* |
|
56 |
*/ |
|
57 |
/** |
|
58 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
59 |
*/ |
|
60 |
public class URIUtilsTest extends TestCase { |
|
61 |
|
|
62 |
public void test1() throws URISyntaxException{ |
|
63 |
URI uri = URIUtils.createUri("http://www.upv.es", "http", 80); |
|
64 |
assertEquals(uri.getHost(), "www.upv.es"); |
|
65 |
assertEquals(uri.getScheme(), "http"); |
|
66 |
assertEquals(uri.getPort(), 80); |
|
67 |
assertEquals(uri.getPath(), ""); |
|
68 |
} |
|
69 |
|
|
70 |
public void test2() throws URISyntaxException{ |
|
71 |
URI uri = URIUtils.createUri("www.upv.es", "http", 80); |
|
72 |
assertEquals(uri.getHost(), "www.upv.es"); |
|
73 |
assertEquals(uri.getScheme(), "http"); |
|
74 |
assertEquals(uri.getPort(), 80); |
|
75 |
assertEquals(uri.getPath(), ""); |
|
76 |
} |
|
77 |
|
|
78 |
public void test3() throws URISyntaxException{ |
|
79 |
URI uri = URIUtils.createUri("www.upv.es", "z3950", 2100); |
|
80 |
assertEquals(uri.getHost(), "www.upv.es"); |
|
81 |
assertEquals(uri.getScheme(), "z3950"); |
|
82 |
assertEquals(uri.getPort(), 2100); |
|
83 |
assertEquals(uri.getPath(), ""); |
|
84 |
} |
|
85 |
|
|
86 |
public void test4() throws URISyntaxException{ |
|
87 |
URI uri = URIUtils.createUri("http://193.144.250.29/webservices/services/IDEC_GeoServeisPort", "http", 80); |
|
88 |
assertEquals(uri.getHost(), "193.144.250.29"); |
|
89 |
assertEquals(uri.getScheme(), "http"); |
|
90 |
assertEquals(uri.getPort(), 80); |
|
91 |
assertEquals(uri.getPath(), "/webservices/services/IDEC_GeoServeisPort"); |
|
92 |
} |
|
93 |
} |
|
0 | 94 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/src-test/es/gva/cit/gazetteer/drivers/ExampleNewDriver.java | ||
---|---|---|
1 |
package es.gva.cit.gazetteer.drivers; |
|
2 |
|
|
3 |
import java.awt.geom.Point2D; |
|
4 |
import java.net.URI; |
|
5 |
|
|
6 |
import es.gva.cit.catalog.drivers.DiscoveryServiceCapabilities; |
|
7 |
import es.gva.cit.catalog.exceptions.NotSupportedProtocolException; |
|
8 |
import es.gva.cit.catalog.ui.search.SearchAditionalPropertiesPanel; |
|
9 |
import es.gva.cit.gazetteer.querys.Feature; |
|
10 |
import es.gva.cit.gazetteer.querys.GazetteerQuery; |
|
11 |
|
|
12 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
13 |
* |
|
14 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
15 |
* |
|
16 |
* This program is free software; you can redistribute it and/or |
|
17 |
* modify it under the terms of the GNU General Public License |
|
18 |
* as published by the Free Software Foundation; either version 2 |
|
19 |
* of the License, or (at your option) any later version. |
|
20 |
* |
|
21 |
* This program is distributed in the hope that it will be useful, |
|
22 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
23 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
24 |
* GNU General Public License for more details. |
|
25 |
* |
|
26 |
* You should have received a copy of the GNU General Public License |
|
27 |
* along with this program; if not, write to the Free Software |
|
28 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
29 |
* |
|
30 |
* For more information, contact: |
|
31 |
* |
|
32 |
* Generalitat Valenciana |
|
33 |
* Conselleria d'Infraestructures i Transport |
|
34 |
* Av. Blasco Ib??ez, 50 |
|
35 |
* 46010 VALENCIA |
|
36 |
* SPAIN |
|
37 |
* |
|
38 |
* +34 963862235 |
|
39 |
* gvsig@gva.es |
|
40 |
* www.gvsig.gva.es |
|
41 |
* |
|
42 |
* or |
|
43 |
* |
|
44 |
* IVER T.I. S.A |
|
45 |
* Salamanca 50 |
|
46 |
* 46005 Valencia |
|
47 |
* Spain |
|
48 |
* |
|
49 |
* +34 963163400 |
|
50 |
* dac@iver.es |
|
51 |
*/ |
|
52 |
/* CVS MESSAGES: |
|
53 |
* |
|
54 |
* $Id: ExampleNewDriver.java 537 2007-07-26 11:21:10 +0000 (Thu, 26 Jul 2007) jpiera $ |
|
55 |
* $Log$ |
|
56 |
* Revision 1.1.2.1 2007/07/13 12:00:35 jorpiell |
|
57 |
* Add the posibility to add a new panel |
|
58 |
* |
|
59 |
* |
|
60 |
*/ |
|
61 |
/** |
|
62 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
63 |
*/ |
|
64 |
public class ExampleNewDriver extends AbstractGazetteerServiceDriver { |
|
65 |
|
|
66 |
/* |
|
67 |
* (non-Javadoc) |
|
68 |
* @see es.gva.cit.catalogClient.drivers.IDiscoveryServiceDriver#getCapabilities(java.net.URI) |
|
69 |
*/ |
|
70 |
public DiscoveryServiceCapabilities getCapabilities(URI uri) { |
|
71 |
return new GazetteerCapabilities(); |
|
72 |
} |
|
73 |
|
|
74 |
/* |
|
75 |
* (non-Javadoc) |
|
76 |
* @see es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver#getFeature(java.net.URI, es.gva.cit.gazetteer.querys.Query) |
|
77 |
*/ |
|
78 |
public Feature[] getFeature(URI uri, GazetteerQuery query) throws Exception { |
|
79 |
String prop = (String)query.getProperty("PROP1"); |
|
80 |
Feature[] features = new Feature[1]; |
|
81 |
features[0] = new Feature("1","Result 1","description 1",new Point2D.Double(0,0)); |
|
82 |
return features; |
|
83 |
} |
|
84 |
|
|
85 |
/* |
|
86 |
* (non-Javadoc) |
|
87 |
* @see es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver#getServiceName() |
|
88 |
*/ |
|
89 |
public String getServiceName() { |
|
90 |
return "My service"; |
|
91 |
} |
|
92 |
|
|
93 |
/* |
|
94 |
* (non-Javadoc) |
|
95 |
* @see es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver#getAditionalSearchPanel() |
|
96 |
*/ |
|
97 |
public SearchAditionalPropertiesPanel getAditionalSearchPanel(){ |
|
98 |
return new ExampleNewPanel(); |
|
99 |
} |
|
100 |
|
|
101 |
} |
|
0 | 102 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/src-test/es/gva/cit/gazetteer/drivers/ExampleNewDriverTest.java | ||
---|---|---|
1 |
package es.gva.cit.gazetteer.drivers; |
|
2 |
|
|
3 |
import javax.swing.UIManager; |
|
4 |
import javax.swing.UnsupportedLookAndFeelException; |
|
5 |
|
|
6 |
import es.gva.cit.gazetteer.adl.drivers.ADLGazetteerServiceDriver; |
|
7 |
import es.gva.cit.gazetteer.idec.drivers.IDECGazetteerServiceDriver; |
|
8 |
import es.gva.cit.gazetteer.ui.serverconnect.ServerConnectDialog; |
|
9 |
import es.gva.cit.gazetteer.utils.GazetteerDriverRegister; |
|
10 |
import es.gva.cit.gazetteer.wfs.drivers.WFSServiceDriver; |
|
11 |
import es.gva.cit.gazetteer.wfsg.drivers.WFSGServiceDriver; |
|
12 |
|
|
13 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
14 |
* |
|
15 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
16 |
* |
|
17 |
* This program is free software; you can redistribute it and/or |
|
18 |
* modify it under the terms of the GNU General Public License |
|
19 |
* as published by the Free Software Foundation; either version 2 |
|
20 |
* of the License, or (at your option) any later version. |
|
21 |
* |
|
22 |
* This program is distributed in the hope that it will be useful, |
|
23 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
24 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
25 |
* GNU General Public License for more details. |
|
26 |
* |
|
27 |
* You should have received a copy of the GNU General Public License |
|
28 |
* along with this program; if not, write to the Free Software |
|
29 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
30 |
* |
|
31 |
* For more information, contact: |
|
32 |
* |
|
33 |
* Generalitat Valenciana |
|
34 |
* Conselleria d'Infraestructures i Transport |
|
35 |
* Av. Blasco Ib??ez, 50 |
|
36 |
* 46010 VALENCIA |
|
37 |
* SPAIN |
|
38 |
* |
|
39 |
* +34 963862235 |
|
40 |
* gvsig@gva.es |
|
41 |
* www.gvsig.gva.es |
|
42 |
* |
|
43 |
* or |
|
44 |
* |
|
45 |
* IVER T.I. S.A |
|
46 |
* Salamanca 50 |
|
47 |
* 46005 Valencia |
|
48 |
* Spain |
|
49 |
* |
|
50 |
* +34 963163400 |
|
51 |
* dac@iver.es |
|
52 |
*/ |
|
53 |
/* CVS MESSAGES: |
|
54 |
* |
|
55 |
* $Id: ExampleNewDriverTest.java 512 2007-07-24 11:25:43 +0000 (Tue, 24 Jul 2007) jorpiell $ |
|
56 |
* $Log$ |
|
57 |
* Revision 1.1.2.2 2007/07/24 11:25:42 jorpiell |
|
58 |
* The registers has been refactorized |
|
59 |
* |
|
60 |
* Revision 1.1.2.1 2007/07/13 12:00:35 jorpiell |
|
61 |
* Add the posibility to add a new panel |
|
62 |
* |
|
63 |
* |
|
64 |
*/ |
|
65 |
/** |
|
66 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
67 |
*/ |
|
68 |
public class ExampleNewDriverTest { |
|
69 |
|
|
70 |
/** |
|
71 |
* @param args |
|
72 |
*/ |
|
73 |
public static void main(String[] args) { |
|
74 |
GazetteerDriverRegister register = GazetteerDriverRegister.getInstance(); |
|
75 |
register.register(new ExampleNewDriver()); |
|
76 |
//Get the currently installed look and feel |
|
77 |
UIManager.getLookAndFeel(); |
|
78 |
// Install a different look and feel; specifically, the Windows look and feel |
|
79 |
try { |
|
80 |
UIManager.setLookAndFeel( |
|
81 |
"com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
82 |
} catch (InstantiationException e) { |
|
83 |
} catch (ClassNotFoundException e) { |
|
84 |
} catch (UnsupportedLookAndFeelException e) { |
|
85 |
} catch (IllegalAccessException e) { |
|
86 |
} |
|
87 |
|
|
88 |
new ServerConnectDialog(); |
|
89 |
} |
|
90 |
|
|
91 |
} |
|
0 | 92 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/src-test/es/gva/cit/gazetteer/drivers/ExampleNewPanel.java | ||
---|---|---|
1 |
package es.gva.cit.gazetteer.drivers; |
|
2 |
|
|
3 |
import java.util.Properties; |
|
4 |
|
|
5 |
import javax.swing.JLabel; |
|
6 |
import javax.swing.JTextField; |
|
7 |
|
|
8 |
import es.gva.cit.catalog.ui.search.SearchAditionalPropertiesPanel; |
|
9 |
|
|
10 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
11 |
* |
|
12 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
13 |
* |
|
14 |
* This program is free software; you can redistribute it and/or |
|
15 |
* modify it under the terms of the GNU General Public License |
|
16 |
* as published by the Free Software Foundation; either version 2 |
|
17 |
* of the License, or (at your option) any later version. |
|
18 |
* |
|
19 |
* This program is distributed in the hope that it will be useful, |
|
20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
22 |
* GNU General Public License for more details. |
|
23 |
* |
|
24 |
* You should have received a copy of the GNU General Public License |
|
25 |
* along with this program; if not, write to the Free Software |
|
26 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
27 |
* |
|
28 |
* For more information, contact: |
|
29 |
* |
|
30 |
* Generalitat Valenciana |
|
31 |
* Conselleria d'Infraestructures i Transport |
|
32 |
* Av. Blasco Ib??ez, 50 |
|
33 |
* 46010 VALENCIA |
|
34 |
* SPAIN |
|
35 |
* |
|
36 |
* +34 963862235 |
|
37 |
* gvsig@gva.es |
|
38 |
* www.gvsig.gva.es |
|
39 |
* |
|
40 |
* or |
|
41 |
* |
|
42 |
* IVER T.I. S.A |
|
43 |
* Salamanca 50 |
|
44 |
* 46005 Valencia |
|
45 |
* Spain |
|
46 |
* |
|
47 |
* +34 963163400 |
|
48 |
* dac@iver.es |
|
49 |
*/ |
|
50 |
/* CVS MESSAGES: |
|
51 |
* |
|
52 |
* $Id: ExampleNewPanel.java 537 2007-07-26 11:21:10 +0000 (Thu, 26 Jul 2007) jpiera $ |
|
53 |
* $Log$ |
|
54 |
* Revision 1.1.2.1 2007/07/13 12:00:35 jorpiell |
|
55 |
* Add the posibility to add a new panel |
|
56 |
* |
|
57 |
* |
|
58 |
*/ |
|
59 |
/** |
|
60 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
61 |
*/ |
|
62 |
public class ExampleNewPanel extends SearchAditionalPropertiesPanel{ |
|
63 |
JLabel label = null; |
|
64 |
JTextField text = null; |
|
65 |
|
|
66 |
public ExampleNewPanel(){ |
|
67 |
label = new JLabel(); |
|
68 |
text = new JTextField(); |
|
69 |
setLayout(new java.awt.BorderLayout()); |
|
70 |
label.setText("Label"); |
|
71 |
add(label, java.awt.BorderLayout.WEST); |
|
72 |
add(text, java.awt.BorderLayout.CENTER); |
|
73 |
} |
|
74 |
|
|
75 |
/* |
|
76 |
* (non-Javadoc) |
|
77 |
* @see es.gva.cit.gazetteer.ui.search.SearchAditionalPropertiesPanel#getProperties() |
|
78 |
*/ |
|
79 |
public Properties getProperties() { |
|
80 |
Properties properties = new Properties(); |
|
81 |
properties.put("PROP1", text.getText()); |
|
82 |
return properties; |
|
83 |
} |
|
84 |
|
|
85 |
} |
|
0 | 86 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/src-test/es/gva/cit/gazetteer/URIs.java | ||
---|---|---|
1 |
package es.gva.cit.gazetteer; |
|
2 |
|
|
3 |
import java.net.URISyntaxException; |
|
4 |
|
|
5 |
|
|
6 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
7 |
* |
|
8 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
9 |
* |
|
10 |
* This program is free software; you can redistribute it and/or |
|
11 |
* modify it under the terms of the GNU General Public License |
|
12 |
* as published by the Free Software Foundation; either version 2 |
|
13 |
* of the License, or (at your option) any later version. |
|
14 |
* |
|
15 |
* This program is distributed in the hope that it will be useful, |
|
16 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
* GNU General Public License for more details. |
|
19 |
* |
|
20 |
* You should have received a copy of the GNU General Public License |
|
21 |
* along with this program; if not, write to the Free Software |
|
22 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
23 |
* |
|
24 |
* For more information, contact: |
|
25 |
* |
|
26 |
* Generalitat Valenciana |
|
27 |
* Conselleria d'Infraestructures i Transport |
|
28 |
* Av. Blasco Ib??ez, 50 |
|
29 |
* 46010 VALENCIA |
|
30 |
* SPAIN |
|
31 |
* |
|
32 |
* +34 963862235 |
|
33 |
* gvsig@gva.es |
|
34 |
* www.gvsig.gva.es |
|
35 |
* |
|
36 |
* or |
|
37 |
* |
|
38 |
* IVER T.I. S.A |
|
39 |
* Salamanca 50 |
|
40 |
* 46005 Valencia |
|
41 |
* Spain |
|
42 |
* |
|
43 |
* +34 963163400 |
|
44 |
* dac@iver.es |
|
45 |
*/ |
|
46 |
/* CVS MESSAGES: |
|
47 |
* |
|
48 |
* $Id: URIs.java 499 2007-07-10 11:18:10 +0000 (Tue, 10 Jul 2007) jorpiell $ |
|
49 |
* $Log$ |
|
50 |
* Revision 1.1.2.1 2007/07/10 11:18:03 jorpiell |
|
51 |
* Added the registers |
|
52 |
* |
|
53 |
* |
|
54 |
*/ |
|
55 |
/** |
|
56 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
57 |
*/ |
|
58 |
public class URIs { |
|
59 |
|
|
60 |
/** |
|
61 |
* @param args |
|
62 |
* @throws URISyntaxException |
|
63 |
*/ |
|
64 |
public static void main(String[] args) throws URISyntaxException { |
|
65 |
java.net.URI uri = new java.net.URI("www.upv.es"); |
|
66 |
System.out.println(uri.getHost()); |
|
67 |
System.out.println(uri.getPort()); |
|
68 |
System.out.println(uri.getScheme()); |
|
69 |
java.net.URI uri1 = new java.net.URI("z3950://www.upv.es"); |
|
70 |
System.out.println(uri1.getHost()); |
|
71 |
System.out.println(uri1.getPort()); |
|
72 |
System.out.println(uri1.getScheme()); |
|
73 |
} |
|
74 |
|
|
75 |
} |
|
0 | 76 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/config/ApplicationContextAlone.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> |
|
3 |
|
|
4 |
<beans> |
|
5 |
|
|
6 |
<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> |
|
7 |
<property name="location"><value>config/TestContext.properties</value></property> |
|
8 |
</bean> |
|
9 |
|
|
10 |
<!-- ========================= GENERAL DEFINITIONS ========================= --> |
|
11 |
|
|
12 |
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> |
|
13 |
<property name="basename"><value>messages</value></property> |
|
14 |
</bean> |
|
15 |
|
|
16 |
|
|
17 |
<!-- ========================= PERSISTENCE DEFINITIONS ========================= --> |
|
18 |
|
|
19 |
<!-- ========================= BUSINESS DEFINITIONS ========================= --> |
|
20 |
|
|
21 |
<bean id="OIDRegister" class="org.jzkit.a2j.codec.util.OIDRegister"> |
|
22 |
<constructor-arg index="0"><value>/es/gva/cit/catalog/protocols/context/a2j.properties</value></constructor-arg> |
|
23 |
</bean> |
|
24 |
|
|
25 |
<!-- conversion rules --> |
|
26 |
<bean id="RPNToInternalRules" class="org.jzkit.util.PropsHolder"> |
|
27 |
<constructor-arg index="0"><value>/es/gva/cit/catalog/protocols/context/InternalAttrTypes.properties</value></constructor-arg> |
|
28 |
</bean> |
|
29 |
|
|
30 |
<bean id="InternalToType1ConversionRules" class="org.jzkit.z3950.QueryModel.PropsBasedInternalToType1ConversionRules"> |
|
31 |
<constructor-arg index="0"><value>/es/gva/cit/catalog/protocols/context/InternalToType1Rules.properties</value></constructor-arg> |
|
32 |
</bean> |
|
33 |
|
|
34 |
</beans> |
|
0 | 35 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/config/ApplicationContext.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> |
|
3 |
<beans> |
|
4 |
<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> |
|
5 |
<property name="location"><value>gvSIG/extensiones/es.gva.cit.gvsig.catalogClient/config/TestContext.properties</value></property> |
|
6 |
</bean> |
|
7 |
<!-- ========================= GENERAL DEFINITIONS ========================= --> |
|
8 |
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> |
|
9 |
<property name="basename"><value>messages</value></property> |
|
10 |
</bean> |
|
11 |
<!-- ========================= PERSISTENCE DEFINITIONS ========================= --> |
|
12 |
|
|
13 |
<!-- ========================= BUSINESS DEFINITIONS ========================= --> |
|
14 |
|
|
15 |
<bean id="OIDRegister" class="org.jzkit.a2j.codec.util.OIDRegister"> |
|
16 |
<constructor-arg index="0"><value>/es/gva/cit/catalog/protocols/context/a2j.properties</value></constructor-arg> |
|
17 |
</bean> |
|
18 |
|
|
19 |
<!-- conversion rules --> |
|
20 |
<bean id="RPNToInternalRules" class="org.jzkit.util.PropsHolder"> |
|
21 |
<constructor-arg index="0"><value>/es/gva/cit/catalog/protocols/context/InternalAttrTypes.properties</value></constructor-arg> |
|
22 |
</bean> |
|
23 |
|
|
24 |
<bean id="InternalToType1ConversionRules" class="org.jzkit.z3950.QueryModel.PropsBasedInternalToType1ConversionRules"> |
|
25 |
<constructor-arg index="0"><value>/es/gva/cit/catalog/protocols/context/InternalToType1Rules.properties</value></constructor-arg> |
|
26 |
</bean> |
|
27 |
</beans> |
|
0 | 28 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/config/cvs/Root | ||
---|---|---|
1 |
:extssh:jorpiell@www.gvsig.org:/var/lib/cvs-gvSIG |
|
0 | 2 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/config/cvs/Entries | ||
---|---|---|
1 |
/ApplicationContext.xml/1.1.2.1/Wed Sep 20 12:01:08 2006//TCatalogYNomenclator_v1_1_0_1005 |
|
2 |
/ApplicationContextAlone.xml/1.1.2.1/Wed Sep 20 12:01:08 2006//TCatalogYNomenclator_v1_1_0_1005 |
|
3 |
/TestContext.properties/1.1.2.1/Wed Sep 20 12:01:08 2006//TCatalogYNomenclator_v1_1_0_1005 |
|
0 | 4 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/config/cvs/Tag | ||
---|---|---|
1 |
TCatalogYNomenclator_v1_1_0_1005 |
|
0 | 2 |
tags/v2_0_0_prep_before_2001/applications/appCatalogAndGazetteerClient/config/cvs/Repository | ||
---|---|---|
1 |
gvSIG-project/applications/appCatalogYNomenclatorClient/config |
|
0 | 2 |
Also available in: Unified diff