root / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / plugins / Extension.java @ 34818
History | View | Annotate | Download (3.65 KB)
1 |
package org.gvsig.andami.plugins; |
---|---|
2 |
|
3 |
import org.gvsig.andami.PluginsLocator; |
4 |
import org.gvsig.andami.plugins.status.IExtensionStatus; |
5 |
|
6 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
7 |
*
|
8 |
* Copyright (C) 2004-2007 IVER T.I. and Generalitat Valenciana.
|
9 |
*
|
10 |
* This program is free software; you can redistribute it and/or
|
11 |
* modify it under the terms of the GNU General Public License
|
12 |
* as published by the Free Software Foundation; either version 2
|
13 |
* of the License, or (at your option) any later version.
|
14 |
*
|
15 |
* This program is distributed in the hope that it will be useful,
|
16 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
17 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
18 |
* GNU General Public License for more details.
|
19 |
*
|
20 |
* You should have received a copy of the GNU General Public License
|
21 |
* along with this program; if not, write to the Free Software
|
22 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
23 |
*
|
24 |
* For more information, contact:
|
25 |
*
|
26 |
* Generalitat Valenciana
|
27 |
* Conselleria d'Infraestructures i Transport
|
28 |
* Av. Blasco Ib??ez, 50
|
29 |
* 46010 VALENCIA
|
30 |
* SPAIN
|
31 |
*
|
32 |
* +34 963862235
|
33 |
* gvsig@gva.es
|
34 |
* www.gvsig.gva.es
|
35 |
*
|
36 |
* or
|
37 |
*
|
38 |
* IVER T.I. S.A
|
39 |
* Salamanca 50
|
40 |
* 46005 Valencia
|
41 |
* Spain
|
42 |
*
|
43 |
* +34 963163400
|
44 |
* dac@iver.es
|
45 |
*/
|
46 |
/* CVS MESSAGES:
|
47 |
*
|
48 |
* $Id: Extension.java 34818 2011-03-23 14:35:07Z nfrancisco $
|
49 |
* $Log$
|
50 |
* Revision 1.12 2007-09-17 06:33:34 caballero
|
51 |
* unsaveddata
|
52 |
*
|
53 |
* Revision 1.11 2007/07/19 12:01:06 cesar
|
54 |
* Add support for the new Andami termination process (and the unsaved data dialog)
|
55 |
*
|
56 |
* Revision 1.10 2007/05/31 07:42:17 cesar
|
57 |
* Add ExclusiveUIExtension interface and clean the IExtension interface; update Extension, ExtensionDecorator and Launcher to reflect this change; add missing comments, translate existing ones to english
|
58 |
*
|
59 |
* Revision 1.9 2007/05/31 07:00:47 cesar
|
60 |
* Add missing comments, translate existing ones to english
|
61 |
*
|
62 |
* Revision 1.8 2006/11/27 11:33:05 jmvivo
|
63 |
* Soporte para que una clase tenga el control de la visibilidad y estado de las acciones del resto de extensiones.
|
64 |
*
|
65 |
* Revision 1.7 2006/09/15 10:39:18 caballero
|
66 |
* multisplah y postInitialize
|
67 |
*
|
68 |
* Revision 1.6 2006/07/31 18:22:13 cesar
|
69 |
* Rename finalize method to terminate method
|
70 |
*
|
71 |
* Revision 1.5 2006/05/02 15:53:06 jorpiell
|
72 |
* Se ha cambiado la interfaz Extension por dos clases: una interfaz (IExtension) y una clase abstract(Extension). A partir de ahora todas las extensiones deben heredar de Extension
|
73 |
*
|
74 |
*
|
75 |
*/
|
76 |
/**
|
77 |
* Extensions are the way in which plugins extend Andami. Extensions
|
78 |
* can add controls to user interface (GUI) and execute some code
|
79 |
* when controls are activated. Every class implementing
|
80 |
* {@link IExtension} is an extension, but directly implementing
|
81 |
* that interface is discouraged. The preferred way to create
|
82 |
* an extension is extending this absctract class.
|
83 |
*
|
84 |
* @see IExtension
|
85 |
*
|
86 |
* @author Jorge Piera Llodr? (piera_jor@gva.es)
|
87 |
*/
|
88 |
public abstract class Extension implements IExtension { |
89 |
|
90 |
/*
|
91 |
* (non-Javadoc)
|
92 |
* @see com.iver.andami.plugins.IExtension#terminate()
|
93 |
*/
|
94 |
public void terminate(){ |
95 |
|
96 |
} |
97 |
/*
|
98 |
* (non-Javadoc)
|
99 |
* @see com.iver.andami.plugins.IExtension#postInitialize()
|
100 |
*/
|
101 |
public void postInitialize(){ |
102 |
|
103 |
} |
104 |
|
105 |
/*
|
106 |
* (non-Javadoc)
|
107 |
* @see com.iver.andami.plugins.IExtension#getStatus()
|
108 |
*/
|
109 |
public IExtensionStatus getStatus() {
|
110 |
return null; |
111 |
} |
112 |
|
113 |
/*
|
114 |
* (non-Javadoc)
|
115 |
* @see com.iver.andami.plugins.IExtension#getStatus(IExtension extension)
|
116 |
*/
|
117 |
public IExtensionStatus getStatus(IExtension extension) {
|
118 |
return extension.getStatus();
|
119 |
} |
120 |
|
121 |
public String getText(String msg) { |
122 |
return PluginsLocator.getManager().getText(this, msg); |
123 |
} |
124 |
} |
125 |
|