5 |
5 |
import org.gvsig.app.extension.AddLayer;
|
6 |
6 |
import org.gvsig.app.project.documents.view.legend.gui.ThemeManagerWindow;
|
7 |
7 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect;
|
|
8 |
import org.gvsig.gui.beans.panelGroup.PanelGroupManager;
|
8 |
9 |
import org.gvsig.tools.ToolsLocator;
|
9 |
10 |
import org.gvsig.tools.extensionpoint.ExtensionPoint;
|
10 |
11 |
import org.gvsig.tools.extensionpoint.ExtensionPointManager;
|
... | ... | |
12 |
13 |
import org.gvsig.wfs.gui.panels.WFSFilterPanel;
|
13 |
14 |
import org.gvsig.wfs.gui.panels.WFSInfoPanel;
|
14 |
15 |
import org.gvsig.wfs.gui.panels.WFSOptionsPanel;
|
|
16 |
import org.gvsig.wfs.gui.panels.WFSParamsPanel;
|
15 |
17 |
import org.gvsig.wfs.gui.panels.WFSSelectFeaturePanel;
|
16 |
18 |
import org.gvsig.wfs.gui.panels.WFSSelectFieldsPanel;
|
17 |
19 |
import org.gvsig.wfs.gui.toc.WFSProperties;
|
... | ... | |
91 |
93 |
public class WFSClientExtension extends Extension{
|
92 |
94 |
|
93 |
95 |
public void initialize() {
|
94 |
|
// addProvider();
|
95 |
|
|
96 |
96 |
// Adds a new tab to the "add layer" wizard for WFS layer creation
|
97 |
97 |
AddLayer.addWizard(WFSWizard.class);
|
98 |
98 |
|
99 |
99 |
ExtensionPointManager extensionPointManager = ToolsLocator
|
100 |
100 |
.getExtensionPointManager();
|
101 |
|
|
102 |
|
//WFS properties panel
|
103 |
|
ExtensionPoint viewExtensionPoint = extensionPointManager.add("View_TocActions");
|
104 |
|
//viewExtensionPoint.append("WFSProperties", "", new WFSPropertiesTocMenuEntry());
|
105 |
|
//viewExtensionPoint.append("VectorialProperties", "", new WFSVectorialPropsTocMenuEntry());
|
106 |
|
|
|
101 |
|
107 |
102 |
//WFS properties tabs:
|
108 |
103 |
ExtensionPoint wfsTabExtensionPoint = extensionPointManager.add("WFSPropertiesDialog");
|
109 |
104 |
wfsTabExtensionPoint.append("info", "", WFSInfoPanel.class);
|
... | ... | |
117 |
112 |
ThemeManagerWindow.addPage(WFSProperties.class);
|
118 |
113 |
ThemeManagerWindow.setTabEnabledForLayer(WFSProperties.class, FLyrVect.class, true);
|
119 |
114 |
|
120 |
|
//Transaction
|
121 |
|
//ExtensionPoint wfsExtensionPoint = extensionPointManager.add("WFSExtension");
|
122 |
|
//wfsExtensionPoint.append("WFSLayerListener", "", WFSTEditionListener.class);
|
|
115 |
// Registers this class as a "PanelGroup" type
|
|
116 |
PanelGroupManager.getManager().registerPanelGroup(WFSParamsPanel.class);
|
|
117 |
|
|
118 |
// Sets this class as the default "PanelGroup" type
|
|
119 |
PanelGroupManager.getManager().setDefaultType(WFSParamsPanel.class);
|
123 |
120 |
|
124 |
121 |
initilizeIcons();
|
125 |
122 |
}
|
126 |
123 |
|
127 |
|
// /**
|
128 |
|
// * Adds the WFS provider
|
129 |
|
// */
|
130 |
|
// private void addProvider() {
|
131 |
|
// WFSLibrary wfsLib = new WFSLibrary();
|
132 |
|
// wfsLib.initialize();
|
133 |
|
// wfsLib.postInitialize();
|
134 |
|
// }
|
135 |
|
|
136 |
124 |
/*
|
137 |
125 |
* (non-Javadoc)
|
138 |
126 |
* @see com.iver.andami.plugins.IExtension#execute(java.lang.String)
|