| Summary: | AbstractFeatureProvider's addIfPossible method always returns null | ||
|---|---|---|---|
| Product: | [Modeling] Graphiti | Reporter: | Rhett Hudson <rhett.hudson> |
| Component: | Core | Assignee: | Michael Wenz <michael.wenz> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | matthias.gorning, michael.wenz |
| Version: | 0.8.0 | Flags: | michael.wenz:
juno+
|
| Target Milestone: | 0.9.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | Juno M5 Theme_bugs | ||
|
Description
Rhett Hudson
I fixed this by adding a return value to the method executeFeature in IDiagramEditor. The implementation in DiagramEditor returns the added PE in case of an add feature being executed, in all other cases it continues to return null. The method addIfPossible grabs that return value and itself returns it. Also added a test case for this in GFOtherTests (testAddReturnsAddedPictogramElement). Checked in and pushed to Eclipse: commit 70c4695586a0f149d4f618bc797f60296c29c7d7 Author: mwenz <michael.wenz@sap.com> 2011-12-29 16:23:26 Committer: mwenz <michael.wenz@sap.com> 2011-12-29 16:23:38 Parent: ace4106947b31ad291bf068ca0c260c7a79ee2ce (.) Branches: origin/master, master Bookkeeping: Set target release Part of Graphiti 0.9.0 (Eclipse Juno) |