root / trunk / extensions / extPublish / src / com / iver / cit / gvsig / publish / ConfServerWMSExtension.java @ 8969
History | View | Annotate | Download (2.02 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 | 8918 | jvhigon | 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 | 8842 | jorpiell | import com.iver.cit.gvsig.project.documents.view.gui.View; |
13 | 7175 | luisw2 | import com.iver.cit.gvsig.publish.gui.PublishPreferencesPage; |
14 | 6956 | jorpiell | import com.iver.cit.gvsig.publish.gui.SelectServerWindow; |
15 | 7175 | luisw2 | import com.iver.utiles.extensionPoints.ExtensionPointsSingleton; |
16 | 6893 | luisw2 | |
17 | public class ConfServerWMSExtension extends Extension{ |
||
18 | 8918 | jvhigon | |
19 | 7102 | jorpiell | /*
|
20 | * (non-Javadoc)
|
||
21 | * @see com.iver.andami.plugins.IExtension#initialize()
|
||
22 | */
|
||
23 | 6893 | luisw2 | public void initialize() { |
24 | // TODO Auto-generated method stub
|
||
25 | 7175 | luisw2 | System.out.println("Initializing Remote Services Publishing Prototype Extension"); |
26 | ExtensionPointsSingleton.getInstance().add( |
||
27 | "AplicationPreferences","PublishPreferencesPage", new PublishPreferencesPage()); |
||
28 | 6893 | luisw2 | } |
29 | 7102 | jorpiell | |
30 | /*
|
||
31 | * (non-Javadoc)
|
||
32 | * @see com.iver.andami.plugins.IExtension#execute(java.lang.String)
|
||
33 | */
|
||
34 | 8918 | jvhigon | 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 | 8969 | jorpiell | PluginServices.getMDIManager().addWindow(new SelectServerWindow());
|
47 | 7125 | luisw2 | } |
48 | 6893 | luisw2 | } |
49 | |||
50 | 7102 | jorpiell | /*
|
51 | * (non-Javadoc)
|
||
52 | * @see com.iver.andami.plugins.IExtension#isEnabled()
|
||
53 | */
|
||
54 | 6893 | luisw2 | public boolean isEnabled() { |
55 | return true; |
||
56 | } |
||
57 | |||
58 | 7102 | jorpiell | /*
|
59 | * (non-Javadoc)
|
||
60 | * @see com.iver.andami.plugins.IExtension#isVisible()
|
||
61 | */
|
||
62 | 6893 | luisw2 | public boolean isVisible() { |
63 | com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager().getActiveWindow(); |
||
64 | if (f == null) { |
||
65 | return false; |
||
66 | } |
||
67 | 7175 | luisw2 | return (f instanceof View); |
68 | 6893 | luisw2 | } |
69 | } |