Revision 38867
branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/project/documents/view/toc/actions/StopEditingTocMenuEntry.java | ||
---|---|---|
41 | 41 |
public void execute(ITocItem item, FLayer[] selectedItems) { |
42 | 42 |
StopEditing stopEditind=(StopEditing)PluginServices.getExtension(StopEditing.class); |
43 | 43 |
stopEditind.execute("layer-stop-editing"); |
44 |
PluginServices.getMainFrame().enableControls(); |
|
44 |
// This is done inside execute |
|
45 |
// PluginServices.getMainFrame().enableControls(); |
|
45 | 46 |
} |
46 | 47 |
} |
branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/project/documents/view/toc/actions/StartEditingTocMenuEntry.java | ||
---|---|---|
47 | 47 |
public void execute(ITocItem item, FLayer[] selectedItems) { |
48 | 48 |
StartEditing startEditind=(StartEditing)PluginServices.getExtension(StartEditing.class); |
49 | 49 |
startEditind.execute("layer-start-editing"); |
50 |
PluginServices.getMainFrame().enableControls(); |
|
50 |
// This is done inside execute |
|
51 |
// PluginServices.getMainFrame().enableControls(); |
|
51 | 52 |
} |
52 | 53 |
} |
branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/StartEditing.java | ||
---|---|---|
105 | 105 |
|
106 | 106 |
// This line also enables the spatial cache for snapping: |
107 | 107 |
lv.setEditing(true); |
108 |
|
|
109 |
ApplicationLocator.getManager().refreshMenusAndToolBars(); |
|
108 | 110 |
|
109 | 111 |
lv.getFeatureStore().addObserver(mapControl); |
110 | 112 |
startCommandsApplicable(vista, lv); |
Also available in: Unified diff