root / trunk / extensions / extPublish / src / com / iver / cit / gvsig / publish / ConfServerWMSExtension.java @ 8969
History | View | Annotate | Download (2.02 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.andami.ui.mdiManager.IWindow; |
10 |
import com.iver.cit.gvsig.fmap.MapControl; |
11 |
import com.iver.cit.gvsig.fmap.layers.FLayers; |
12 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
13 |
import com.iver.cit.gvsig.publish.gui.PublishPreferencesPage; |
14 |
import com.iver.cit.gvsig.publish.gui.SelectServerWindow; |
15 |
import com.iver.utiles.extensionPoints.ExtensionPointsSingleton; |
16 |
|
17 |
public class ConfServerWMSExtension extends Extension{ |
18 |
|
19 |
/*
|
20 |
* (non-Javadoc)
|
21 |
* @see com.iver.andami.plugins.IExtension#initialize()
|
22 |
*/
|
23 |
public void initialize() { |
24 |
// TODO Auto-generated method stub
|
25 |
System.out.println("Initializing Remote Services Publishing Prototype Extension"); |
26 |
ExtensionPointsSingleton.getInstance().add( |
27 |
"AplicationPreferences","PublishPreferencesPage", new PublishPreferencesPage()); |
28 |
} |
29 |
|
30 |
/*
|
31 |
* (non-Javadoc)
|
32 |
* @see com.iver.andami.plugins.IExtension#execute(java.lang.String)
|
33 |
*/
|
34 |
public void execute(String actionCommand){ |
35 |
//View view = (View) PluginServices.getMDIManager().getActiveWindow();
|
36 |
//InfoView iv = new InfoView (view);
|
37 |
//iv.print();
|
38 |
//if (actionCommand.startsWith("PUBLISH"))
|
39 |
// x = new SelectServerWindow()
|
40 |
// x.setView(bview)
|
41 |
// PluginServices.getMDIManager().addCentredWindow(x);
|
42 |
//else if (actionCommand.startsWith("TEST")) {
|
43 |
// new MapServerTestWithTime();
|
44 |
//}
|
45 |
if (actionCommand.startsWith("PUBLISH")){ |
46 |
PluginServices.getMDIManager().addWindow(new SelectServerWindow());
|
47 |
} |
48 |
} |
49 |
|
50 |
/*
|
51 |
* (non-Javadoc)
|
52 |
* @see com.iver.andami.plugins.IExtension#isEnabled()
|
53 |
*/
|
54 |
public boolean isEnabled() { |
55 |
return true; |
56 |
} |
57 |
|
58 |
/*
|
59 |
* (non-Javadoc)
|
60 |
* @see com.iver.andami.plugins.IExtension#isVisible()
|
61 |
*/
|
62 |
public boolean isVisible() { |
63 |
com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager().getActiveWindow(); |
64 |
if (f == null) { |
65 |
return false; |
66 |
} |
67 |
return (f instanceof View); |
68 |
} |
69 |
} |