svn-gvsig-desktop / trunk / extensions / extPublish / src / com / iver / cit / gvsig / publish / ConfServerWMSExtension.java @ 7125
History | View | Annotate | Download (1.35 KB)
1 |
package com.iver.cit.gvsig.publish; |
---|---|
2 |
|
3 |
|
4 |
|
5 |
import org.gvsig.remoteservices.conf.mapserver.test.MapServerTestWithTime; |
6 |
|
7 |
import com.iver.andami.PluginServices; |
8 |
import com.iver.andami.plugins.Extension; |
9 |
import com.iver.cit.gvsig.gui.View; |
10 |
import com.iver.cit.gvsig.publish.gui.SelectServerWindow; |
11 |
|
12 |
public class ConfServerWMSExtension extends Extension{ |
13 |
|
14 |
/*
|
15 |
* (non-Javadoc)
|
16 |
* @see com.iver.andami.plugins.IExtension#initialize()
|
17 |
*/
|
18 |
public void initialize() { |
19 |
// TODO Auto-generated method stub
|
20 |
System.out.println("Initializing config server WMS prototype"); |
21 |
|
22 |
} |
23 |
|
24 |
/*
|
25 |
* (non-Javadoc)
|
26 |
* @see com.iver.andami.plugins.IExtension#execute(java.lang.String)
|
27 |
*/
|
28 |
public void execute(String actionCommand) { |
29 |
if (actionCommand.startsWith("PUBLISH")) |
30 |
PluginServices.getMDIManager().addCentredWindow(new SelectServerWindow());
|
31 |
else if (actionCommand.startsWith("TEST")) { |
32 |
new MapServerTestWithTime();
|
33 |
} |
34 |
} |
35 |
|
36 |
/*
|
37 |
* (non-Javadoc)
|
38 |
* @see com.iver.andami.plugins.IExtension#isEnabled()
|
39 |
*/
|
40 |
public boolean isEnabled() { |
41 |
// TODO Auto-generated method stub
|
42 |
return true; |
43 |
} |
44 |
|
45 |
/*
|
46 |
* (non-Javadoc)
|
47 |
* @see com.iver.andami.plugins.IExtension#isVisible()
|
48 |
*/
|
49 |
public boolean isVisible() { |
50 |
com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager().getActiveWindow(); |
51 |
if (f == null) { |
52 |
return false; |
53 |
} |
54 |
return (f instanceof View); |
55 |
|
56 |
} |
57 |
|
58 |
} |