Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.geodb.app / org.gvsig.geodb.app.mainplugin / src / main / java / org / gvsig / geodb / ExtDB_Spatial.java @ 40557

History | View | Annotate | Download (2.84 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.geodb;
25

    
26
import org.gvsig.about.AboutManager;
27
import org.gvsig.about.AboutParticipant;
28
import org.gvsig.andami.IconThemeHelper;
29
import org.gvsig.andami.plugins.Extension;
30
import org.gvsig.app.ApplicationLocator;
31
import org.gvsig.app.ApplicationManager;
32
import org.gvsig.app.extension.AddLayer;
33
import org.gvsig.geodb.vectorialdb.wizard.WizardDB;
34
import org.gvsig.geodb.vectorialdb.wizard.WizardVectorialDB;
35

    
36

    
37

    
38
/**
39
 * This extension adds the export-to-oracle button.
40
 *
41
 * @author jldominguez
42
 *
43
 */
44
public class ExtDB_Spatial extends Extension {
45

    
46
        public void initialize() {
47
        IconThemeHelper.registerIcon("geodb", "geodb-connection-add", this);
48
        IconThemeHelper.registerIcon("geodb", "geodb-advanced-properties", this);
49
        IconThemeHelper.registerIcon("geodb", "geodb-get-view-extent", this);
50
    }
51

    
52
    public void execute(String actionCommand) {
53
        //do nothing
54
    }
55

    
56
    public boolean isEnabled() {
57
        return isVisible();
58

    
59
        // return true;
60
    }
61

    
62
    /**
63
     * Is visible when there is one vector layer selected
64
     */
65
    public boolean isVisible() {
66
        return false;
67
    }
68

    
69
        @Override
70
        public void postInitialize() {
71
                super.postInitialize();
72
              addAboutInfo();
73

    
74
                ApplicationLocator.getManager().registerAddTableWizard("DB",
75
                                "DB Tables", WizardDB.class);
76
            AddLayer.addWizard(WizardVectorialDB.class);
77
        }
78
        
79
           private void addAboutInfo() {
80
                ApplicationManager application = ApplicationLocator.getManager();
81
                
82
                AboutManager about = application.getAbout();
83
                about.addDeveloper("PRODEVELOP", getClass().getClassLoader()
84
                    .getResource("prodevelop.html"), 2);
85

    
86
                AboutParticipant participant = about.getDeveloper("PRODEVELOP");
87
                participant.addContribution(
88
                    "GeoDB",
89
                    "Soporte para pool de conexiones con BBDD", 
90
                    2006,1,1, 
91
                    2007,12,31
92
                );      
93
            }
94

    
95
}