root / trunk / extensions / extRasterTools-SE / src-test / org / gvsig / rastertools / memorydrivertest / TestMemoryModule.java @ 11174
History | View | Annotate | Download (2.05 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2004 IVER T.I. 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 |
package org.gvsig.rastertools.memorydrivertest; |
20 |
|
21 |
import com.iver.andami.PluginServices; |
22 |
import com.iver.andami.plugins.Extension; |
23 |
import com.iver.cit.gvsig.AddLayer; |
24 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
25 |
|
26 |
|
27 |
/**
|
28 |
* Extensi?n para el filtro de pansharpening de raster
|
29 |
* @author Nacho Brodin (brodin_ign@gva.es)
|
30 |
*/
|
31 |
public class TestMemoryModule extends Extension { |
32 |
|
33 |
/* (non-Javadoc)
|
34 |
* @see com.iver.andami.plugins.Extension#inicializar()
|
35 |
*/
|
36 |
public void initialize() { |
37 |
AddLayer.addWizard(TestMemoryDriverWizard.class); |
38 |
} |
39 |
|
40 |
/**
|
41 |
* Cargamos el listener y ejecutamos la herramienta de salvar a Raster.
|
42 |
*/
|
43 |
public void execute(String actionCommand) { |
44 |
|
45 |
} |
46 |
|
47 |
/* (non-Javadoc)
|
48 |
* @see com.iver.andami.plugins.Extension#isEnabled()
|
49 |
*/
|
50 |
public boolean isEnabled() { |
51 |
return true; |
52 |
} |
53 |
|
54 |
/**
|
55 |
* Mostramos el control si hay alguna capa cargada.
|
56 |
*/
|
57 |
public boolean isVisible() { |
58 |
com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager() |
59 |
.getActiveWindow(); |
60 |
if (f == null) |
61 |
return false; |
62 |
|
63 |
return (f instanceof View); |
64 |
} |
65 |
} |