Revision 10626 trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/tools/SelectionCADTool.java
SelectionCADTool.java | ||
---|---|---|
47 | 47 |
import java.awt.event.InputEvent; |
48 | 48 |
import java.awt.event.MouseEvent; |
49 | 49 |
import java.awt.geom.Point2D; |
50 |
import java.io.IOException; |
|
51 | 50 |
import java.util.ArrayList; |
52 | 51 |
|
53 | 52 |
import com.hardcode.driverManager.DriverLoadException; |
53 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
54 | 54 |
import com.iver.andami.PluginServices; |
55 | 55 |
import com.iver.cit.gvsig.CADExtension; |
56 | 56 |
import com.iver.cit.gvsig.fmap.MapControl; |
... | ... | |
61 | 61 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
62 | 62 |
import com.iver.cit.gvsig.fmap.core.ShapeFactory; |
63 | 63 |
import com.iver.cit.gvsig.fmap.core.v02.FLabel; |
64 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
|
65 | 64 |
import com.iver.cit.gvsig.fmap.edition.AnnotationEditableAdapter; |
66 | 65 |
import com.iver.cit.gvsig.fmap.edition.DefaultRowEdited; |
67 | 66 |
import com.iver.cit.gvsig.fmap.edition.IRowEdited; |
... | ... | |
176 | 175 |
return nextState; |
177 | 176 |
} |
178 | 177 |
|
179 |
protected void pointDoubleClick(MapControl map) { |
|
178 |
protected void pointDoubleClick(MapControl map) throws ReadDriverException {
|
|
180 | 179 |
try { |
181 | 180 |
FLayer[] actives = map.getMapContext() |
182 | 181 |
.getLayers().getActives(); |
... | ... | |
199 | 198 |
|
200 | 199 |
} catch (DriverLoadException e) { |
201 | 200 |
e.printStackTrace(); |
202 |
} catch (com.iver.cit.gvsig.fmap.DriverException e) { |
|
203 |
e.printStackTrace(); |
|
204 | 201 |
} |
205 | 202 |
|
206 | 203 |
} |
... | ... | |
217 | 214 |
*/ |
218 | 215 |
public void addPoint(double x, double y, InputEvent event) { |
219 | 216 |
if (event!=null && ((MouseEvent)event).getClickCount()==2){ |
220 |
pointDoubleClick((MapControl)event.getComponent()); |
|
217 |
try { |
|
218 |
pointDoubleClick((MapControl)event.getComponent()); |
|
219 |
} catch (ReadDriverException e) { |
|
220 |
e.printStackTrace(); |
|
221 |
} |
|
221 | 222 |
return; |
222 | 223 |
} |
223 | 224 |
SelectionCADToolState actualState = (SelectionCADToolState) _fsm |
... | ... | |
262 | 263 |
vle.setSelectionCache(VectorialLayerEdited.SAVEPREVIOUS, selectedRowsAux); |
263 | 264 |
//clearSelection(); |
264 | 265 |
//selectedRow.addAll(selectedRowsAux); |
265 |
try { |
|
266 |
String description=PluginServices.getText(this,"move_handlers"); |
|
267 |
vea.endComplexRow(description); |
|
268 |
} catch (IOException e) { |
|
269 |
e.printStackTrace(); |
|
270 |
} catch (DriverIOException e) { |
|
271 |
e.printStackTrace(); |
|
272 |
} |
|
266 |
String description=PluginServices.getText(this,"move_handlers"); |
|
267 |
vea.endComplexRow(description); |
|
273 | 268 |
} |
274 | 269 |
} |
275 | 270 |
|
Also available in: Unified diff