File size: 572 Bytes
e789b06 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
TDAT: private EditPart getPartForElement(Object modelElement) { if (modelElement instanceof Docflow) { return new DocflowPart(); } if (modelElement instanceof State) { return new StatePart(); } if (modelElement instanceof Transition) { return new TransitionPart(); } if (modelElement instanceof Connection) { return new ConnectionPart(); } throw new RuntimeException("Can't create part for model element: " + ((modelElement != null) ? modelElement.getClass().getName() : "null")); } COM: <s> maps an object to an edit part </s> |