Package org.eclipse.gmf.runtime.notation

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


    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.RoleAttributeCompartmentEditPart.VISUAL_ID:
        for (Iterator cit = node.getChildren().iterator(); cit
            .hasNext();) {
          Node cnode = (Node) cit.next();
          switch (OntoUML.diagram.part.OntoUMLVisualIDRegistry
              .getVisualID(cnode)) {
          case OntoUML.diagram.edit.parts.Property9EditPart.VISUAL_ID:
            cmd.add(getDestroyElementCommand(cnode));
            break;
View Full Code Here


   * @generated
   */
  public View createView(IAdaptable semanticAdapter, View containerView,
      String semanticHint, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    Node view = (Node) super.createView(semanticAdapter, containerView,
        semanticHint, index, persisted, preferencesHint);
    Location location = (Location) view.getLayoutConstraint();
    IMapMode mapMode = MeasurementUnitHelper.getMapMode(containerView
        .getDiagram().getMeasurementUnit());
    location.setX(mapMode.DPtoLP(0));
    location.setY(mapMode.DPtoLP(100));
    return view;
View Full Code Here

    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.ModeAttributeCompartmentEditPart.VISUAL_ID:
        for (Iterator cit = node.getChildren().iterator(); cit
            .hasNext();) {
          Node cnode = (Node) cit.next();
          switch (OntoUML.diagram.part.OntoUMLVisualIDRegistry
              .getVisualID(cnode)) {
          case OntoUML.diagram.edit.parts.Property5EditPart.VISUAL_ID:
            cmd.add(getDestroyElementCommand(cnode));
            break;
View Full Code Here

   * @generated
   */
  public View createView(IAdaptable semanticAdapter, View containerView,
      String semanticHint, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    Node view = (Node) super.createView(semanticAdapter, containerView,
        semanticHint, index, persisted, preferencesHint);
    Location location = (Location) view.getLayoutConstraint();
    IMapMode mapMode = MeasurementUnitHelper.getMapMode(containerView
        .getDiagram().getMeasurementUnit());
    location.setX(mapMode.DPtoLP(20));
    location.setY(mapMode.DPtoLP(20));
    return view;
View Full Code Here

   * @generated
   */
  public View createView(IAdaptable semanticAdapter, View containerView,
      String semanticHint, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    Node view = (Node) super.createView(semanticAdapter, containerView,
        semanticHint, index, persisted, preferencesHint);
    Location location = (Location) view.getLayoutConstraint();
    IMapMode mapMode = MeasurementUnitHelper.getMapMode(containerView
        .getDiagram().getMeasurementUnit());
    location.setX(mapMode.DPtoLP(0));
    location.setY(mapMode.DPtoLP(20));
    return view;
View Full Code Here

   * @generated
   */
  public View createView(IAdaptable semanticAdapter, View containerView,
      String semanticHint, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    Node view = (Node) super.createView(semanticAdapter, containerView,
        semanticHint, index, persisted, preferencesHint);
    Location location = (Location) view.getLayoutConstraint();
    IMapMode mapMode = MeasurementUnitHelper.getMapMode(containerView
        .getDiagram().getMeasurementUnit());
    location.setX(mapMode.DPtoLP(0));
    location.setY(mapMode.DPtoLP(20));
    return view;
View Full Code Here

   * @generated
   */
  public View createView(IAdaptable semanticAdapter, View containerView,
      String semanticHint, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    Node view = (Node) super.createView(semanticAdapter, containerView,
        semanticHint, index, persisted, preferencesHint);
    Location location = (Location) view.getLayoutConstraint();
    IMapMode mapMode = MeasurementUnitHelper.getMapMode(containerView
        .getDiagram().getMeasurementUnit());
    location.setX(mapMode.DPtoLP(0));
    location.setY(mapMode.DPtoLP(20));
    return view;
View Full Code Here

    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.PhaseAttributeCompartmentEditPart.VISUAL_ID:
        for (Iterator cit = node.getChildren().iterator(); cit
            .hasNext();) {
          Node cnode = (Node) cit.next();
          switch (OntoUML.diagram.part.OntoUMLVisualIDRegistry
              .getVisualID(cnode)) {
          case OntoUML.diagram.edit.parts.Property6EditPart.VISUAL_ID:
            cmd.add(getDestroyElementCommand(cnode));
            break;
View Full Code Here

   * @generated
   */
  public View createView(IAdaptable semanticAdapter, View containerView,
      String semanticHint, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    Node view = (Node) super.createView(semanticAdapter, containerView,
        semanticHint, index, persisted, preferencesHint);
    Location location = (Location) view.getLayoutConstraint();
    IMapMode mapMode = MeasurementUnitHelper.getMapMode(containerView
        .getDiagram().getMeasurementUnit());
    location.setX(mapMode.DPtoLP(-20));
    location.setY(mapMode.DPtoLP(20));
    return view;
View Full Code Here

    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.QuantityAttributeCompartmentEditPart.VISUAL_ID:
        for (Iterator cit = node.getChildren().iterator(); cit
            .hasNext();) {
          Node cnode = (Node) cit.next();
          switch (OntoUML.diagram.part.OntoUMLVisualIDRegistry
              .getVisualID(cnode)) {
          case OntoUML.diagram.edit.parts.Property7EditPart.VISUAL_ID:
            cmd.add(getDestroyElementCommand(cnode));
            break;
View Full Code Here

TOP

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

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.