svn-gvsig-desktop / import / extWFS2 / src / com / iver / cit / gvsig / wfs / WFSClientExtension.java @ 18320
History | View | Annotate | Download (3.64 KB)
1 |
package com.iver.cit.gvsig.wfs; |
---|---|
2 |
|
3 |
import com.iver.andami.plugins.Extension; |
4 |
import com.iver.cit.gvsig.AddLayer; |
5 |
import com.iver.cit.gvsig.fmap.layers.FLyrWFS; |
6 |
import com.iver.cit.gvsig.gui.panels.wfsttimewarning.WFSTEditionListener; |
7 |
import com.iver.cit.gvsig.gui.toc.WFSPropsTocMenuEntry; |
8 |
import com.iver.cit.gvsig.gui.toc.WFSTStartEditionTocMenuEntry; |
9 |
import com.iver.cit.gvsig.gui.toc.WFSVectorialPropsTocMenuEntry; |
10 |
import com.iver.cit.gvsig.gui.wizards.WFSWizard; |
11 |
import com.iver.cit.gvsig.project.documents.view.toc.gui.FPopupMenu; |
12 |
import com.iver.utiles.extensionPoints.ExtensionPoints; |
13 |
import com.iver.utiles.extensionPoints.ExtensionPointsSingleton; |
14 |
|
15 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
16 |
*
|
17 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
18 |
*
|
19 |
* This program is free software; you can redistribute it and/or
|
20 |
* modify it under the terms of the GNU General Public License
|
21 |
* as published by the Free Software Foundation; either version 2
|
22 |
* of the License, or (at your option) any later version.
|
23 |
*
|
24 |
* This program is distributed in the hope that it will be useful,
|
25 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
26 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
27 |
* GNU General Public License for more details.
|
28 |
*
|
29 |
* You should have received a copy of the GNU General Public License
|
30 |
* along with this program; if not, write to the Free Software
|
31 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
32 |
*
|
33 |
* For more information, contact:
|
34 |
*
|
35 |
* Generalitat Valenciana
|
36 |
* Conselleria d'Infraestructures i Transport
|
37 |
* Av. Blasco Ib??ez, 50
|
38 |
* 46010 VALENCIA
|
39 |
* SPAIN
|
40 |
*
|
41 |
* +34 963862235
|
42 |
* gvsig@gva.es
|
43 |
* www.gvsig.gva.es
|
44 |
*
|
45 |
* or
|
46 |
*
|
47 |
* IVER T.I. S.A
|
48 |
* Salamanca 50
|
49 |
* 46005 Valencia
|
50 |
* Spain
|
51 |
*
|
52 |
* +34 963163400
|
53 |
* dac@iver.es
|
54 |
*/
|
55 |
/* CVS MESSAGES:
|
56 |
*
|
57 |
* $Id: WFSClientExtension.java 18320 2008-01-25 13:16:03Z jpiera $
|
58 |
* $Log$
|
59 |
* Revision 1.6.2.2 2006-11-17 11:28:45 ppiqueras
|
60 |
* Corregidos bugs y a?adida nueva funcionalidad.
|
61 |
*
|
62 |
* Revision 1.8 2006/10/02 09:09:45 jorpiell
|
63 |
* Cambios del 10 copiados al head
|
64 |
*
|
65 |
* Revision 1.6 2006/09/05 15:41:52 jorpiell
|
66 |
* A?adida la funcionalidad de cargar WFS desde el cat?logo
|
67 |
*
|
68 |
* Revision 1.5 2006/07/05 12:04:50 jorpiell
|
69 |
* A?adida la opci?n de propiedades vectoriales
|
70 |
*
|
71 |
* Revision 1.4 2006/06/21 12:35:45 jorpiell
|
72 |
* Se ha a?adido la ventana de propiedades. Esto implica a?adir listeners por todos los paneles. Adem?s no se muestra la geomatr?a en la lista de atributos y se muestran ?nicamnete los que se van a descargar
|
73 |
*
|
74 |
* Revision 1.3 2006/05/19 12:57:34 jorpiell
|
75 |
* Ahora hereda de Extension
|
76 |
*
|
77 |
* Revision 1.1 2006/04/19 12:50:16 jorpiell
|
78 |
* Primer commit de la aplicaci?n. Se puede hacer un getCapabilities y ver el mensaje de vienvenida del servidor
|
79 |
*
|
80 |
*
|
81 |
*/
|
82 |
/**
|
83 |
* @author Jorge Piera Llodr? (piera_jor@gva.es)
|
84 |
*/
|
85 |
public class WFSClientExtension extends Extension{ |
86 |
|
87 |
public void initialize() { |
88 |
System.out.println("A?ado Wizard WFS2."); |
89 |
|
90 |
FPopupMenu.addEntry(new WFSPropsTocMenuEntry());
|
91 |
FPopupMenu.addEntry(new WFSVectorialPropsTocMenuEntry());
|
92 |
|
93 |
// Adds a new tab to the "add layer" wizard for WFS layer creation
|
94 |
AddLayer.addWizard(WFSWizard.class); |
95 |
ExtensionPoints extensionPoints = ExtensionPointsSingleton.getInstance(); |
96 |
extensionPoints.add("CatalogLayers","OGC:WFS",FLyrWFS.class); |
97 |
extensionPoints.add("WFSExtension","WFSLayerListener",WFSTEditionListener.class); |
98 |
} |
99 |
|
100 |
public void execute(String actionCommand) { |
101 |
// TODO Auto-generated method stub
|
102 |
|
103 |
} |
104 |
|
105 |
public boolean isEnabled() { |
106 |
// TODO Auto-generated method stub
|
107 |
return false; |
108 |
} |
109 |
|
110 |
public boolean isVisible() { |
111 |
// TODO Auto-generated method stub
|
112 |
return false; |
113 |
} |
114 |
|
115 |
} |