// Returns the TNodeTemplate belonging to the anchor, or null if not available private TNodeTemplate getTNodeTemplate(Anchor anchor) { if (anchor != null) { Object obj = getBusinessObjectForPictogramElement(anchor.getParent()); if (obj instanceof TNodeTemplate) { return (TNodeTemplate) obj; } } return null; }
private FlowNode getFlowNode(Anchor anchor) { if (anchor != null) { Object obj = getBusinessObjectForPictogramElement(anchor.getParent()); if (obj instanceof FlowNode) { return (FlowNode) obj; } } return null; }