| Summary: | Features should have different outcome in terms of model change and dirty state | ||
|---|---|---|---|
| Product: | [Modeling] Graphiti | Reporter: | Henrik Rentz-Reichert <hrr> |
| Component: | Core | Assignee: | Michael Wenz <michael.wenz> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | michael.wenz, tim.kaiser |
| Version: | 0.8.0 | Flags: | michael.wenz:
indigo+
|
| Target Milestone: | 0.8.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | Indigo RC1 theme_bugs | ||
|
Description
Henrik Rentz-Reichert
In order to achieve 3) features must indicate cancellation via throwing a runtime exception (EMF uses org.eclipse.core.runtime.OperationCancelledException for this case). Through the hierarchy of the EMF/GEF commands and command stacks this exception was caught and not re-thrown, leading to this behavior. Now when a feature throws an OperationCancelledException it reaches the outmost EMF command correctly and triggers a rollback of the complete operation. Note: any other RuntimeException will have the same effect, but it will lead to an error entry in the Eclipse error log. Checked-in to head. Part of Graphiti Indigo 0.8.0 |