Revision 484 org.gvsig.vectorediting/trunk/org.gvsig.vectorediting/org.gvsig.vectorediting.swing/org.gvsig.vectorediting.swing.impl/src/main/java/org/gvsig/vectorediting/swing/impl/DefaultEditingContext.java
DefaultEditingContext.java | ||
---|---|---|
607 | 607 |
|
608 | 608 |
if (!serviceStack.isEmpty() |
609 | 609 |
&& getActiveService().next().getTypes().contains(TYPE.GEOMETRY)) { |
610 |
|
|
611 | 610 |
Geometry geometry = lastService.finish(); |
612 |
|
|
613 | 611 |
if (geometry != null) { |
614 |
|
|
615 | 612 |
getActiveService().setValue(geometry); |
616 |
|
|
617 | 613 |
} |
618 |
|
|
619 | 614 |
} else { |
620 |
|
|
621 | 615 |
lastService.finishAndStore(); |
622 | 616 |
getMapControl().rePaintDirtyLayers(); |
623 | 617 |
|
... | ... | |
625 | 619 |
showConsoleMessage("\n" |
626 | 620 |
+ i18nManager.getTranslation(lastService.getName()) + "# " |
627 | 621 |
+ i18nManager.getTranslation("finished") + "\n"); |
622 |
lastService.stop(); |
|
628 | 623 |
setActiveService(lastService); |
624 |
lastService.start(); |
|
629 | 625 |
changeSelectedTool(getActiveService().getName()); |
630 | 626 |
} |
631 | 627 |
|
632 |
lastService.stop(); |
|
633 |
lastService.start(); |
|
634 |
|
|
635 | 628 |
} catch (InvalidEntryException ex) { |
636 | 629 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
637 | 630 |
showConsoleMessage("\n" |
Also available in: Unified diff