15361537153815391540154115421543154415451546
private Element findTableRowElement( final Element element ) { final ElementList<?> list = list(); Element result = element; for( Property parent = element.parent(); parent != list; parent = result.parent() ) { result = parent.element(); } return result;
7071727374757677787980
} for( MasterDetailsContentNodePart node : nodesToDelete ) { final Element element = node.getModelElement(); final Property elementParent = element.parent(); if( elementParent.definition() instanceof ListProperty ) { ( (ElementList<?>) elementParent ).remove( element ); }
5657585960616263646566
@Override protected Object evaluate() { final Element element = operand( 0, Element.class, false ); final Property parent = element.parent(); if( parent instanceof ElementList ) { final ElementList<?> list = (ElementList<?>) parent;
328329330331332333334335336337338
if (connTemplate.getConnectionType() == DiagramConnectionTemplate.ConnectionType.OneToMany) { Element connParentElement = connTemplate.getConnectionParentElement(nodeModel); if (connParentElement != null) { ElementList<?> connParentList = (ElementList<?>) connParentElement.parent(); connParentList.remove(connParentElement); } } }
218219220221222223224225226227228
else { for (StandardDiagramConnectionPart connPart : this.diagramConnections) { Element connModel = connPart.getLocalModelElement(); if (connModel.parent().element() == connListParent) { connList.add(connPart); } } }
163164165166167168169170171172173
} private void deleteShapePart(ShapePart shapePart) { Element shapeModel = shapePart.getLocalModelElement(); ElementList<?> list = (ElementList<?>) shapeModel.parent(); if (!list.disposed()) { list.remove(shapeModel); } }
196197198199200201202203204205206
} public void remove() { final Element element = getLocalModelElement(); final ElementList<?> list = (ElementList<?>) element.parent(); list.remove(element); pruneListParentIfNecessary(list); } private void pruneListParentIfNecessary(ElementList<?> list)
527528529530531532533534535536537
} if (newTargetNode.getLocalModelElement() != getEndpoint2()) { newConnPart.resetEndpoint2(newTargetNode); } final ElementList<?> list = (ElementList<?>) oldConnElement.parent(); list.remove(oldConnElement); pruneListParentIfNecessary(list); return newConnPart; }
261262263264265266267268269270271
public void deleteNode(DiagramNodePart nodePart) { notifyNodeAboutToBeDeleted(nodePart); Element nodeModel = nodePart.getLocalModelElement(); ElementList<?> list = (ElementList<?>) nodeModel.parent(); list.remove(nodeModel); } public PropertyDef getModelProperty() {
5556575859606162636465
else { element = cast( operand( 0 ), Element.class ); } final Property parent = element.parent(); return ( parent == null ? null : parent.element() ); } }; }