Revision 38885 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/EditionManager.java
EditionManager.java | ||
---|---|---|
114 | 114 |
} |
115 | 115 |
return null; |
116 | 116 |
} |
117 |
|
|
118 |
public void editLayer(FLyrVect lv, DefaultViewPanel vista) |
|
119 |
throws DataException { |
|
117 | 120 |
|
121 |
CADExtension.initFocus(); |
|
122 |
vista.showConsole(); |
|
123 |
MapControl mapControl = vista.getMapControl(); |
|
124 |
this.setMapControl(mapControl); |
|
125 |
|
|
126 |
lv.addLayerListener(this); |
|
127 |
|
|
128 |
// This line also enables the spatial cache for snapping: |
|
129 |
lv.getFeatureStore().edit(); |
|
130 |
lv.getFeatureStore().addObserver(vista); |
|
131 |
|
|
132 |
ApplicationLocator.getManager().refreshMenusAndToolBars(); |
|
133 |
|
|
134 |
lv.getFeatureStore().addObserver(mapControl); |
|
135 |
StartEditing.startCommandsApplicable(vista, lv); |
|
136 |
|
|
137 |
// vista.repaintMap(); |
|
138 |
// ---------------------------- |
|
139 |
// this forces a true repaint: |
|
140 |
lv.drawValueChanged(LayerEvent.createDrawValuesChangedEvent(lv, "")); |
|
141 |
|
|
142 |
} |
|
143 |
|
|
118 | 144 |
public void visibilityChanged(LayerEvent e) { |
119 | 145 |
} |
120 | 146 |
|
Also available in: Unified diff