| Summary: | Transaction policies should provide a mechanism for disabling the local execution of operations. | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Matthias Wienand <matthias.wienand> |
| Component: | GEF MVC | Assignee: | gef-inbox <gef-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | nyssen |
| Version: | 1.0.0 | ||
| Target Milestone: | 5.0.0 (Oxygen) M6 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Matthias Wienand
I added a mechanism similar to AbstractVisualPart#isRefreshVisual(), #setRefreshVisual(), #refreshVisual(), and #doRefreshVisual(). Thus, I added the following methods to AbstractTransactionPolicy: - public isLocallyExecuteOperation() : boolean - public setLocallyExecuteOperation(boolean) - public final locallyExecuteOperation() - protected doLocallyExecuteOperation() The local execution of the transactional operation is enabled per default, and the flag is cleared (i.e. set to true) when the policy is initialized. The code is published on the master branch, therefore, I resolve this ticket as fixed for 5.0.0 M2. Reverted the change. As locallyExecuteOperation is not final, subclasses may add respective behavior if needed. Ensured however, that during commit and rollback, local execution/undo do not break the initialized state. The changes are effective for 5.0.0 M6. |