gvsig-raster / org.gvsig.raster.tools / trunk / org.gvsig.raster.tools / org.gvsig.raster.tools.app / org.gvsig.raster.tools.app.multifile / src / main / java / org / gvsig / raster / tools / app / multifile / MultifileClientExtension.java @ 1817
History | View | Annotate | Download (2.35 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
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 2
|
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 |
*/
|
22 |
package org.gvsig.raster.tools.app.multifile; |
23 |
|
24 |
import java.util.Locale; |
25 |
|
26 |
import org.gvsig.andami.plugins.Extension; |
27 |
import org.gvsig.i18n.Messages; |
28 |
import org.gvsig.raster.tools.app.basic.raster.gui.preference.RasterPreferences; |
29 |
import org.gvsig.raster.tools.app.multifile.panel.BandSelectorPanel; |
30 |
import org.gvsig.tools.ToolsLocator; |
31 |
import org.gvsig.tools.extensionpoint.ExtensionPoint; |
32 |
import org.gvsig.tools.extensionpoint.ExtensionPointManager; |
33 |
|
34 |
/**
|
35 |
* Extension for adding grid netcdf support to gvSIG.
|
36 |
* @author Nacho Brodin (nachobrodin@gmail.com)
|
37 |
*/
|
38 |
public class MultifileClientExtension extends Extension { |
39 |
|
40 |
public void initialize() { |
41 |
// A?adimos la configuracion de Raster a gvSIG
|
42 |
|
43 |
ExtensionPointManager extensionPoints = ToolsLocator.getExtensionPointManager(); |
44 |
|
45 |
ExtensionPoint point = extensionPoints.add("AplicationPreferences");
|
46 |
point.append("RasterPreferences", "", RasterPreferences.class); |
47 |
|
48 |
// A?adimos paneles al cuadro de propiedades.
|
49 |
point = extensionPoints.add("RasterSEPropertiesDialog");
|
50 |
point.append("Bandas", "", BandSelectorPanel.class); |
51 |
|
52 |
if (!Messages.hasLocales()) {
|
53 |
Messages.addLocale(Locale.getDefault());
|
54 |
} |
55 |
|
56 |
Messages.addResourceFamily("org.gvsig.raster.tools.app.multifile.i18n.text",
|
57 |
MultifileClientExtension.class.getClassLoader(), |
58 |
MultifileClientExtension.class.getClass().getName()); |
59 |
|
60 |
} |
61 |
|
62 |
public void execute(String actionCommand) { |
63 |
} |
64 |
|
65 |
public boolean isEnabled() { |
66 |
return true; |
67 |
} |
68 |
|
69 |
public boolean isVisible() { |
70 |
return false; |
71 |
} |
72 |
} |