svn-gvsig-desktop / trunk / extensions / extPublish / src / com / iver / cit / gvsig / publish / ConfServerWMSExtension.java @ 10626
History | View | Annotate | Download (1.82 KB)
1 |
package com.iver.cit.gvsig.publish; |
---|---|
2 |
|
3 |
|
4 |
|
5 |
import com.iver.andami.PluginServices; |
6 |
import com.iver.andami.plugins.Extension; |
7 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
8 |
import com.iver.cit.gvsig.publish.gui.PublishPreferencesPage; |
9 |
import com.iver.cit.gvsig.publish.gui.SelectServerWindow; |
10 |
import com.iver.utiles.extensionPoints.ExtensionPointsSingleton; |
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 Remote Services Publishing Prototype Extension"); |
21 |
ExtensionPointsSingleton.getInstance().add( |
22 |
"AplicationPreferences","PublishPreferencesPage", new PublishPreferencesPage()); |
23 |
} |
24 |
|
25 |
/*
|
26 |
* (non-Javadoc)
|
27 |
* @see com.iver.andami.plugins.IExtension#execute(java.lang.String)
|
28 |
*/
|
29 |
public void execute(String actionCommand){ |
30 |
//View view = (View) PluginServices.getMDIManager().getActiveWindow();
|
31 |
//InfoView iv = new InfoView (view);
|
32 |
//iv.print();
|
33 |
//if (actionCommand.startsWith("PUBLISH"))
|
34 |
// x = new SelectServerWindow()
|
35 |
// x.setView(bview)
|
36 |
// PluginServices.getMDIManager().addCentredWindow(x);
|
37 |
//else if (actionCommand.startsWith("TEST")) {
|
38 |
// new MapServerTestWithTime();
|
39 |
//}
|
40 |
if (actionCommand.startsWith("PUBLISH")){ |
41 |
PluginServices.getMDIManager().addCentredWindow(new SelectServerWindow());
|
42 |
} |
43 |
} |
44 |
|
45 |
/*
|
46 |
* (non-Javadoc)
|
47 |
* @see com.iver.andami.plugins.IExtension#isEnabled()
|
48 |
*/
|
49 |
public boolean isEnabled() { |
50 |
return true; |
51 |
} |
52 |
|
53 |
/*
|
54 |
* (non-Javadoc)
|
55 |
* @see com.iver.andami.plugins.IExtension#isVisible()
|
56 |
*/
|
57 |
public boolean isVisible() { |
58 |
com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager().getActiveWindow(); |
59 |
if (f == null) { |
60 |
return false; |
61 |
} |
62 |
return (f instanceof View); |
63 |
} |
64 |
} |