Summary: | SiriusLayoutManager populated after VSM drop tool's tasks | ||
---|---|---|---|
Product: | [Modeling] Sirius | Reporter: | Benoit Ries <benoit.ries> |
Component: | Core | Assignee: | Project inbox <sirius.core-inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | benoit.ries, steve.monnier |
Version: | 1.0.0 | Keywords: | triaged |
Target Milestone: | --- | ||
Hardware: | Macintosh | ||
OS: | Mac OS X | ||
Whiteboard: |
Description
Benoit Ries
2014-07-18 05:50:23 EDT
I forgot to add the code for the lookForElementInContainerByEObject(), see below: ------------------- private DDiagramElement lookForElementInContainerByEObject(DContainer dContainer, Object objectToLookFor) { if (dContainer instanceof DSemanticDiagram) { DSemanticDiagram dSemanticDiagram = (DSemanticDiagram) dContainer; for (DDiagramElement diagElt : dSemanticDiagram.getDiagramElements()) { if (diagElt instanceof DNode || diagElt instanceof DNodeList) { if (diagElt.getTarget().equals(objectToLookFor)) { return diagElt; } } } } return null; } |