Package org.eclipse.sapphire.ui.swt.gef.policies

Examples of org.eclipse.sapphire.ui.swt.gef.policies.NodeLabelDirectEditPolicy


    ContainerShapePart containerPart = (ContainerShapePart)model.getSapphirePart();
    // Create direct edit policy if it contains non-active sapphire text part. Active
    // Sapphire text part has its own GEF editpart.
    if (containerPart.isEditable())
    {
      installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new NodeLabelDirectEditPolicy());
    }
  }
View Full Code Here


    TextModel textModel = (TextModel)getModel();
    TextPart textPart = (TextPart)textModel.getSapphirePart();

    if (textPart.isEditable())
    {
      installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new NodeLabelDirectEditPolicy());
    }
  }
View Full Code Here

  }

  @Override
  protected void createEditPolicies() {
    installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DiagramNodeEditPolicy());
    installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new NodeLabelDirectEditPolicy());
    installEditPolicy(EditPolicy.COMPONENT_ROLE, new NodeEditPolicy());
    installEditPolicy(EditPolicy.LAYOUT_ROLE, new NodeLayoutEditPolicy((DiagramNodeModel)getModel()));
  }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.swt.gef.policies.NodeLabelDirectEditPolicy

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.