Package org.eclipse.gmf.runtime.notation

Examples of org.eclipse.gmf.runtime.notation.View


  /**
   * @generated
   */
  protected void addDestroyChildNodesCommand(CompoundCommand cmd) {
    View view = (View) getHost().getModel();
    EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
    if (annotation != null) {
      return;
    }
    for (Iterator it = view.getChildren().iterator(); it.hasNext();) {
      Node node = (Node) it.next();
      switch (OntoUML.diagram.part.OntoUMLVisualIDRegistry
          .getVisualID(node)) {
      case OntoUML.diagram.edit.parts.MixinAttributeCompartmentEditPart.VISUAL_ID:
        for (Iterator cit = node.getChildren().iterator(); cit
View Full Code Here


   *
   * @generated
   */
  protected CompoundCommand getDestroyEdgesCommand() {
    CompoundCommand cmd = new CompoundCommand();
    View view = (View) getHost().getModel();
    for (Iterator it = view.getSourceEdges().iterator(); it.hasNext();) {
      cmd.add(getDestroyElementCommand((Edge) it.next()));
    }
    for (Iterator it = view.getTargetEdges().iterator(); it.hasNext();) {
      cmd.add(getDestroyElementCommand((Edge) it.next()));
    }
    return cmd;
  }
View Full Code Here

  /**
   * @generated
   */
  protected void addDestroyShortcutsCommand(CompoundCommand command) {
    View view = (View) getHost().getModel();
    if (view.getEAnnotation("Shortcut") != null) { //$NON-NLS-1$
      return;
    }
    for (Iterator it = view.getDiagram().getChildren().iterator(); it
        .hasNext();) {
      View nextView = (View) it.next();
      if (nextView.getEAnnotation("Shortcut") == null || !nextView.isSetElement() || nextView.getElement() != view.getElement()) { //$NON-NLS-1$
        continue;
      }
      command.add(getDestroyElementCommand(nextView));
    }
  }
View Full Code Here

  /**
   * @generated
   */
  protected List getSemanticChildrenList() {
    View viewObject = (View) getHost().getModel();
    List result = new LinkedList();
    for (Iterator it = OntoUML.diagram.part.OntoUMLDiagramUpdater
        .getStructuralDatatypeAttributeCompartment_7012SemanticChildren(
            viewObject).iterator(); it.hasNext();) {
      result.add(((OntoUML.diagram.part.OntoUMLNodeDescriptor) it.next())
View Full Code Here

  /**
   * @generated
   */
  protected List getSemanticChildrenList() {
    View viewObject = (View) getHost().getModel();
    List result = new LinkedList();
    for (Iterator it = OntoUML.diagram.part.OntoUMLDiagramUpdater
        .getQuantityAttributeCompartment_7007SemanticChildren(
            viewObject).iterator(); it.hasNext();) {
      result.add(((OntoUML.diagram.part.OntoUMLNodeDescriptor) it.next())
View Full Code Here

   */
  protected Command getDestroyElementCommand(DestroyElementRequest req) {
    CompoundCommand cc = getDestroyEdgesCommand();
    addDestroyChildNodesCommand(cc);
    addDestroyShortcutsCommand(cc);
    View view = (View) getHost().getModel();
    if (view.getEAnnotation("Shortcut") != null) { //$NON-NLS-1$
      req.setElementToDestroy(view);
    }
    cc.add(getGEFWrapper(new DestroyElementCommand(req)));
    return cc.unwrap();
  }
View Full Code Here

  /**
   * @generated
   */
  protected void addDestroyChildNodesCommand(CompoundCommand cmd) {
    View view = (View) getHost().getModel();
    EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
    if (annotation != null) {
      return;
    }
    for (Iterator it = view.getChildren().iterator(); it.hasNext();) {
      Node node = (Node) it.next();
      switch (OntoUML.diagram.part.OntoUMLVisualIDRegistry
          .getVisualID(node)) {
      case OntoUML.diagram.edit.parts.RoleMixinAttributeCompartmentEditPart.VISUAL_ID:
        for (Iterator cit = node.getChildren().iterator(); cit
View Full Code Here

   */
  protected Command getDestroyElementCommand(DestroyElementRequest req) {
    CompoundCommand cc = getDestroyEdgesCommand();
    addDestroyChildNodesCommand(cc);
    addDestroyShortcutsCommand(cc);
    View view = (View) getHost().getModel();
    if (view.getEAnnotation("Shortcut") != null) { //$NON-NLS-1$
      req.setElementToDestroy(view);
    }
    cc.add(getGEFWrapper(new DestroyElementCommand(req)));
    return cc.unwrap();
  }
View Full Code Here

  /**
   * @generated
   */
  protected void addDestroyChildNodesCommand(CompoundCommand cmd) {
    View view = (View) getHost().getModel();
    EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
    if (annotation != null) {
      return;
    }
    for (Iterator it = view.getChildren().iterator(); it.hasNext();) {
      Node node = (Node) it.next();
      switch (OntoUML.diagram.part.OntoUMLVisualIDRegistry
          .getVisualID(node)) {
      case OntoUML.diagram.edit.parts.SubKindAttributeCompartmentEditPart.VISUAL_ID:
        for (Iterator cit = node.getChildren().iterator(); cit
View Full Code Here

  /**
   * @generated
   */
  protected List getSemanticChildrenList() {
    View viewObject = (View) getHost().getModel();
    List result = new LinkedList();
    for (Iterator it = OntoUML.diagram.part.OntoUMLDiagramUpdater
        .getSubKindAttributeCompartment_7013SemanticChildren(viewObject)
        .iterator(); it.hasNext();) {
      result.add(((OntoUML.diagram.part.OntoUMLNodeDescriptor) it.next())
View Full Code Here

TOP

Related Classes of org.eclipse.gmf.runtime.notation.View

Copyright © 2018 www.massapicom. 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.