Statistics
| Revision:

svn-gvsig-desktop / branches / v10 / prototypes / 3D / extensions / extWFS2 / src / com / iver / cit / gvsig / wfs / WFSClientExtension.java @ 17132

History | View | Annotate | Download (3.72 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.dialogs.WFSPropsDialog;
7
import com.iver.cit.gvsig.gui.toc.WFSPropsTocMenuEntry;
8
import com.iver.cit.gvsig.gui.toc.WFSVectorialPropsTocMenuEntry;
9
import com.iver.cit.gvsig.gui.wizards.WFSWizard;
10
import com.iver.cit.gvsig.project.documents.view.toc.gui.FPopupMenu;
11
import com.iver.utiles.extensionPoints.ExtensionPoints;
12
import com.iver.utiles.extensionPoints.ExtensionPointsSingleton;
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: WFSClientExtension.java 8847 2006-11-17 11:29:00Z ppiqueras $
57
 * $Log$
58
 * Revision 1.6.2.2  2006-11-17 11:28:45  ppiqueras
59
 * Corregidos bugs y a?adida nueva funcionalidad.
60
 *
61
 * Revision 1.8  2006/10/02 09:09:45  jorpiell
62
 * Cambios del 10 copiados al head
63
 *
64
 * Revision 1.6  2006/09/05 15:41:52  jorpiell
65
 * A?adida la funcionalidad de cargar WFS desde el cat?logo
66
 *
67
 * Revision 1.5  2006/07/05 12:04:50  jorpiell
68
 * A?adida la opci?n de propiedades vectoriales
69
 *
70
 * Revision 1.4  2006/06/21 12:35:45  jorpiell
71
 * 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
72
 *
73
 * Revision 1.3  2006/05/19 12:57:34  jorpiell
74
 * Ahora hereda de Extension
75
 *
76
 * Revision 1.1  2006/04/19 12:50:16  jorpiell
77
 * Primer commit de la aplicaci?n. Se puede hacer un getCapabilities y ver el mensaje de vienvenida del servidor
78
 *
79
 *
80
 */
81
/**
82
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
83
 */
84
public class WFSClientExtension extends Extension{
85

    
86
        public void initialize() {
87
                System.out.println("A?ado Wizard WFS2.");
88
                
89
                FPopupMenu.addEntry(new WFSPropsTocMenuEntry());
90
                FPopupMenu.addEntry(new WFSVectorialPropsTocMenuEntry());
91
        
92
                // Adds a new tab to the "add layer" wizard for WFS layer creation
93
                AddLayer.addWizard(WFSWizard.class);
94
                ExtensionPoints extensionPoints = ExtensionPointsSingleton.getInstance();
95
            extensionPoints.add("CatalogLayers","OGC:WFS",FLyrWFS.class);
96
            extensionPoints.add("CatalogLayersTOC","OGC:WFS",WFSPropsDialog.class);
97
        }
98

    
99
        public void execute(String actionCommand) {
100
                // TODO Auto-generated method stub
101
                
102
        }
103

    
104
        public boolean isEnabled() {
105
                // TODO Auto-generated method stub
106
                return false;
107
        }
108

    
109
        public boolean isVisible() {
110
                // TODO Auto-generated method stub
111
                return false;
112
        }
113

    
114
}