Revision 27861

View differences:

trunk/extensions/extQuickInfo/config/text.properties
59 59
Geometry_without_info=Geometr?a sin informaci?n.
60 60
Failed_creating_XML_document=Fall? creando documento XML.
61 61
Failed_transforming_XML_to_String=Fall? transformando XML a String.
62
extQuickInfo=Extensi?n Informaci?n R?pida
trunk/extensions/extQuickInfo/config/config.xml
6 6
	<depends plugin-name="com.iver.core"/>
7 7
	<resourceBundle name="text"/>
8 8
	<extensions>
9
		<extension class-name="org.gvsig.quickInfo.AboutQuickInfoExtension"
10
                description="Extension Quick Info Tool of the Consejer?a de Medio Ambiente of the Junta de Castilla y Le?n Project."
11
                active="true"
12
                priority="1">
13
		</extension>
9 14
		<extension class-name="org.gvsig.quickInfo.QuickInfoToolExtension"
10 15
			description="Displays the selected information about the feature pointed out by the cursor."
11 16
			active="true"
trunk/extensions/extQuickInfo/src/org/gvsig/quickInfo/AboutQuickInfoExtension.java
1
package org.gvsig.quickInfo;
2

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

  
25
import com.iver.andami.PluginServices;
26
import com.iver.andami.plugins.Extension;
27
import com.iver.cit.gvsig.About;
28
import com.iver.cit.gvsig.gui.panels.FPanelAbout;
29

  
30
/**
31
 * <p>Quick Information extension of the <i>Consejer?a de Medio Ambiente de
32
 *  la Junta de Castilla y Le?n.</i></p> project.
33
 *
34
 * @author Vicente Caballero Navarro (vicente.caballero@iver.es)
35
 * @author Jaume Dom?nguez Faus (jaume.dominguez@iver.es)
36
 * @author C?sar Mart?nez Izquierdo (cesar.martinez@iver.es)
37
 * @author Pablo Piqueras Bartolom? (pablo.piqueras@iver.es)
38
 * @author Jos? Manuel Viv? Arnal (josemanuel.vivo@iver.es)
39
 */
40
public class AboutQuickInfoExtension extends Extension {
41
	/*
42
	 * (non-Javadoc)
43
	 * @see com.iver.andami.plugins.IExtension#initialize()
44
	 */
45
    public void initialize() {
46
     }
47

  
48
    /*
49
     * (non-Javadoc)
50
     * @see com.iver.andami.plugins.Extension#postInitialize()
51
     */
52
    public void postInitialize() {
53
		About about=(About)PluginServices.getExtension(About.class);
54
		FPanelAbout panelAbout=about.getAboutPanel();
55
		java.net.URL aboutURL = this.getClass().getResource("/about.htm");
56
		panelAbout.addAboutUrl(PluginServices.getText(this, "extQuickInfo"),aboutURL);
57
    }
58

  
59
    /*
60
     * (non-Javadoc)
61
     * @see com.iver.andami.plugins.IExtension#execute(java.lang.String)
62
     */
63
	public void execute(String actionCommand) {
64
	}
65

  
66
	/*
67
	 * (non-Javadoc)
68
	 * @see com.iver.andami.plugins.IExtension#isEnabled()
69
	 */
70
	public boolean isEnabled() {
71
		return false;
72
	}
73

  
74
	/*
75
	 * (non-Javadoc)
76
	 * @see com.iver.andami.plugins.IExtension#isVisible()
77
	 */
78
	public boolean isVisible() {
79
		return false;
80
	}
81
}

Also available in: Unified diff