Examples of EditElementCommand


Examples of org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand

      IElementType et = getDiagramEditType(elementType);

      // GMF 2.2: XXXCreateCommands no longer extend CreateElementCommand, so
      // we must get the newly created element from the CreateElementRequest instead
      CreateElementRequest request = new CreateElementRequest(getEditingDomain(), container, et );
      EditElementCommand cc = getDiagramCreateNodeCommand(request, elementType );
      if (cc == null) {
        // we can't do anything because the diagram editor won't allow us to create it currently
        //return null;
        throw new InferenceException("Cannot create an element " + elementType + " in the editing domain " + getEditingDomain());
      }
View Full Code Here

Examples of org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand

        throw new InferenceException("Cannot create a relationship in a null container, source or target");

      // GMF 2.2: XXXCreateCommands no longer extend CreateElementCommand, so
      // we must get the newly created element from the CreateElementRequest instead
      CreateRelationshipRequest request = new CreateRelationshipRequest(getEditingDomain(), container, source, target, getDiagramEditType(elementType) );
      EditElementCommand cc = getDiagramCreateRelationshipCommand(request, elementType, source, target );
      if (cc == null) {
        // we can't do anything because the diagram editor won't allow us to create it currently
        //return null;
        throw new InferenceException("Cannot create a relationship " + elementType + " in the editing domain " + getEditingDomain());
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.