gvsig-geoprocess / org.gvsig.geoprocess / trunk / org.gvsig.geoprocess / org.gvsig.geoprocess.app / org.gvsig.geoprocess.app.mainplugin / src / main / java / org / gvsig / geoprocess / extension / AddDependencyExtension.java @ 556
History | View | Annotate | Download (1.21 KB)
1 |
/**
|
---|---|
2 |
*
|
3 |
*/
|
4 |
package org.gvsig.geoprocess.extension; |
5 |
|
6 |
import org.gvsig.andami.PluginServices; |
7 |
import org.gvsig.andami.PluginsLocator; |
8 |
import org.gvsig.andami.PluginsManager; |
9 |
import org.gvsig.andami.plugins.Extension; |
10 |
|
11 |
/**
|
12 |
* @author fdiaz
|
13 |
*
|
14 |
*/
|
15 |
public class AddDependencyExtension extends Extension { |
16 |
|
17 |
/* (non-Javadoc)
|
18 |
* @see org.gvsig.andami.plugins.IExtension#initialize()
|
19 |
*/
|
20 |
@Override
|
21 |
public void initialize() { |
22 |
|
23 |
PluginsManager pluginsManager = PluginsLocator.getManager(); |
24 |
PluginServices geoprocessMainPlugin = pluginsManager.getPlugin(GeoprocessExtension.class); |
25 |
if (geoprocessMainPlugin!=null){ |
26 |
geoprocessMainPlugin.addDependencyWithPlugin(this.getPlugin());
|
27 |
} |
28 |
} |
29 |
|
30 |
/* (non-Javadoc)
|
31 |
* @see org.gvsig.andami.plugins.IExtension#execute(java.lang.String)
|
32 |
*/
|
33 |
@Override
|
34 |
public void execute(String actionCommand) { |
35 |
// TODO Auto-generated method stub
|
36 |
|
37 |
} |
38 |
|
39 |
/* (non-Javadoc)
|
40 |
* @see org.gvsig.andami.plugins.IExtension#isEnabled()
|
41 |
*/
|
42 |
@Override
|
43 |
public boolean isEnabled() { |
44 |
// TODO Auto-generated method stub
|
45 |
return false; |
46 |
} |
47 |
|
48 |
/* (non-Javadoc)
|
49 |
* @see org.gvsig.andami.plugins.IExtension#isVisible()
|
50 |
*/
|
51 |
@Override
|
52 |
public boolean isVisible() { |
53 |
// TODO Auto-generated method stub
|
54 |
return false; |
55 |
} |
56 |
|
57 |
} |