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