public static OPPObjectProcessDiagram findOPD(OPPNode node) { OPPContainer currentContainer = node.getContainer(); while (currentContainer != null && !(currentContainer instanceof OPPObjectProcessDiagram)) { currentContainer = ((OPPNode) currentContainer).getContainer(); } return (OPPObjectProcessDiagram) currentContainer; }
/** * Set the node to delete from the diagram. * * @param node the Node to delete from the diagram. */ public void setNode(final OPPNode node) { this.node = node; this.container = node.getContainer(); }