Revision 42775 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/extension/ShowLayerAsForm.java
ShowLayerAsForm.java | ||
---|---|---|
18 | 18 |
import org.gvsig.app.project.documents.view.ViewManager; |
19 | 19 |
import org.gvsig.app.project.documents.view.gui.IView; |
20 | 20 |
import org.gvsig.featureform.swing.CreateJFeatureFormException; |
21 |
import org.gvsig.featureform.swing.JFeatureForm; |
|
21 |
import org.gvsig.featureform.swing.JFeaturesForm;
|
|
22 | 22 |
import org.gvsig.fmap.dal.exception.DataException; |
23 | 23 |
import org.gvsig.fmap.dal.feature.Feature; |
24 | 24 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
... | ... | |
72 | 72 |
if (layer.isAvailable() && layer instanceof FLyrVect) { |
73 | 73 |
try { |
74 | 74 |
FLyrVect vectLayer = (FLyrVect) layer; |
75 |
JFeatureForm form = this.createform(vectLayer.getFeatureStore()); |
|
75 |
JFeaturesForm form = this.createform(vectLayer.getFeatureStore());
|
|
76 | 76 |
form.addAction(new ZoomToCurrentAction(doc, form)); |
77 | 77 |
form.addAction(new SelectFeatureInTheViewAction(doc, form, layer)); |
78 | 78 |
form.showForm(WindowManager.MODE.WINDOW); |
... | ... | |
88 | 88 |
|
89 | 89 |
private static class SelectFeatureInTheViewAction extends AbstractAction implements PointListener { |
90 | 90 |
|
91 |
private final JFeatureForm form; |
|
91 |
private final JFeaturesForm form;
|
|
92 | 92 |
private final ViewDocument doc; |
93 | 93 |
private MapControl mapControl = null; |
94 | 94 |
private String previousTool = null; |
95 | 95 |
private final FLyrVect layer; |
96 | 96 |
|
97 |
public SelectFeatureInTheViewAction(ViewDocument doc, JFeatureForm form, FLayer layer) { |
|
97 |
public SelectFeatureInTheViewAction(ViewDocument doc, JFeaturesForm form, FLayer layer) {
|
|
98 | 98 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
99 | 99 |
IconTheme iconTheme = ToolsSwingLocator.getIconThemeManager().getDefault(); |
100 | 100 |
|
... | ... | |
200 | 200 |
|
201 | 201 |
private static class ZoomToCurrentAction extends AbstractAction { |
202 | 202 |
|
203 |
private final JFeatureForm form; |
|
203 |
private final JFeaturesForm form;
|
|
204 | 204 |
private final ViewDocument doc; |
205 | 205 |
|
206 |
public ZoomToCurrentAction(ViewDocument doc, JFeatureForm form) { |
|
206 |
public ZoomToCurrentAction(ViewDocument doc, JFeaturesForm form) {
|
|
207 | 207 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
208 | 208 |
IconTheme iconTheme = ToolsSwingLocator.getIconThemeManager().getDefault(); |
209 | 209 |
|
... | ... | |
235 | 235 |
|
236 | 236 |
} |
237 | 237 |
|
238 |
private JFeatureForm createform(FeatureStore featureStore) throws CreateJFeatureFormException, ServiceException, DataException { |
|
238 |
private JFeaturesForm createform(FeatureStore featureStore) throws CreateJFeatureFormException, ServiceException, DataException {
|
|
239 | 239 |
final DataSwingManager swingManager = DALSwingLocator.getSwingManager(); |
240 |
final JFeatureForm form = swingManager.createJFeatureForm(featureStore);
|
|
240 |
final JFeaturesForm form = swingManager.createJFeaturesForm(featureStore);
|
|
241 | 241 |
form.setPreferredSize(new Dimension(400, 300)); |
242 | 242 |
return form; |
243 | 243 |
} |
Also available in: Unified diff