Statistics
| Revision:

gvsig-raster / org.gvsig.raster.postgis / trunk / org.gvsig.raster.postgis / org.gvsig.raster.postgis.app / org.gvsig.raster.postgis.app.postgisrasterclient / src / main / java / org / gvsig / raster / postgis / app / postgisrasterclient / PostGISRasterExtension.java @ 877

History | View | Annotate | Download (2.36 KB)

1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
*
3
* Copyright (C) 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
package org.gvsig.raster.postgis.app.postgisrasterclient;
20

    
21
import org.gvsig.about.AboutManager;
22
import org.gvsig.about.AboutParticipant;
23
import org.gvsig.andami.plugins.Extension;
24
import org.gvsig.app.ApplicationLocator;
25
import org.gvsig.app.ApplicationManager;
26
import org.gvsig.app.extension.AddLayer;
27
import org.gvsig.raster.postgis.app.postgisrasterclient.gui.PostGISRasterWizard;
28

    
29
/**
30
 * Entry point for PostGISRaster extension
31
 *  
32
 * @author Nacho Brodin (nachobrodin@gmail.org)
33
 */
34
public class PostGISRasterExtension extends Extension {
35
        /**
36
         * Initializes the wizard panel
37
         *
38
         */
39
        public void initialize() {
40
            initializeIcons();
41
        }
42

    
43
        /**
44
         * @see com.iver.andami.plugins.IExtension#postInitialize()
45
         */
46
        @Override
47
        public void postInitialize() {
48
                super.postInitialize();
49
            addAboutInfo();
50

    
51
                AddLayer.addWizard(PostGISRasterWizard.class);
52
        }
53
        
54
        private void addAboutInfo() {
55
        ApplicationManager application = ApplicationLocator.getManager();
56
        
57
        AboutManager about = application.getAbout();
58
        about.addDeveloper("PRODEVELOP", getClass().getClassLoader()
59
            .getResource("prodevelop.html"), 2);
60

    
61
        AboutParticipant participant = about.getDeveloper("PRODEVELOP");
62
        participant.addContribution(
63
            "PostGIS Raster",
64
            "Soporte para BBDD r?ster usando PostGIS", 
65
            2006,1,1, 
66
            2007,12,31
67
        );      
68
    }
69

    
70
        public void execute(String actionCommand) {
71
        }
72

    
73
        public boolean isEnabled() {
74
                return true;
75
        }
76

    
77
        public boolean isVisible() {
78
                return false;
79
        }
80

    
81
        void initializeIcons(){
82
        
83
        }
84
}