Package org.eclipse.gmf.runtime.notation

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


   * @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(80));
    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(60));
    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(40));
    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.MixinAttributeCompartmentEditPart.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.Property4EditPart.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(40));
    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(40));
    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.RoleMixinAttributeCompartmentEditPart.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.Property10EditPart.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(20));
    return view;
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.