public AddNodeCommand( DiagramNotification editorNotification, CompositeElement parent, RefOntoUML.Element element, double x, double y, UmlProject project, RefOntoUML.Element eContainer) { this.parent = parent; this.project = project; this.notification = editorNotification; if (notification == null) this.addToDiagram = false; else this.addToDiagram = true; this.element = element; this.eContainer = eContainer; this.diagramElement = ModelHelper.getDiagramElementByEditor(element, (DiagramEditor) notification); if (this.diagramElement == null) { if (element instanceof RefOntoUML.Class || element instanceof RefOntoUML.Association || element instanceof RefOntoUML.DataType || element instanceof RefOntoUML.Generalization) { if (notification != null) this.diagramElement = ((DiagramEditor) this.notification) .getCreationHandler() .createNode((RefOntoUML.Type) element, eContainer); } } absx = x; absy = y; }