Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / applications / appgvSIG / src / com / iver / cit / gvsig / ExtDB_Spatial.java @ 21743

History | View | Annotate | Download (2.85 KB)

1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2006 Prodevelop 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
 *   Prodevelop Integraci?n de Tecnolog?as SL
34
 *   Conde Salvatierra de ?lava , 34-10
35
 *   46004 Valencia
36
 *   Spain
37
 *
38
 *   +34 963 510 612
39
 *   +34 963 510 968
40
 *   gis@prodevelop.es
41
 *   http://www.prodevelop.es
42
 */
43
package com.iver.cit.gvsig;
44

    
45
import java.security.KeyException;
46

    
47
import org.apache.log4j.Logger;
48
import org.gvsig.fmap.mapcontext.layers.vectorial.FLayerVectorialDB;
49

    
50
import com.iver.andami.plugins.Extension;
51
import com.iver.utiles.extensionPoints.ExtensionPoint;
52
import com.iver.utiles.extensionPoints.ExtensionPoints;
53
import com.iver.utiles.extensionPoints.ExtensionPointsSingleton;
54
import com.prodevelop.cit.gvsig.vectorialdb.wizard.WizardVectorialDB;
55

    
56

    
57
/**
58
 * This extension adds the export-to-oracle button.
59
 *
60
 * @author jldominguez
61
 *
62
 */
63
public class ExtDB_Spatial extends Extension {
64
    private static Logger logger = Logger.getLogger(ExtDB_Spatial.class.getName());
65

    
66
    public void initialize() {
67

    
68
//        System.out.println("A?ado WizardVectorialDB.");
69
        AddLayer.addWizard(WizardVectorialDB.class);
70

    
71
        ExtensionPoints extensionPoints = ExtensionPointsSingleton.getInstance();
72

    
73
        extensionPoints.add("Layers", FLayerVectorialDB.class.getName(),
74
                        FLayerVectorialDB.class);
75

    
76
        try {
77
            ((ExtensionPoint) extensionPoints.get("Layers")).addAlias(FLayerVectorialDB.class.getName(),
78
                "VectorialDB");
79
        }
80
        catch (KeyException e) {
81
            // TODO Auto-generated catch block
82
            e.printStackTrace();
83
        }
84
    }
85

    
86
    public void execute(String actionCommand) {
87
    }
88

    
89
    public boolean isEnabled() {
90
        return isVisible();
91

    
92
        // return true;
93
    }
94

    
95
    /**
96
     * Is visible when there is one vector layer selected
97
     */
98
    public boolean isVisible() {
99
        return false;
100
    }
101
}