Package fd2.diagram.edit.policies

Examples of fd2.diagram.edit.policies.Fd2TextNonResizableEditPolicy


    if (Fd2ElementTypes.OptionalRelation_4009 == req.getElementType()) {
      return getGEFWrapper(new OptionalRelationCreateCommand(req, req
          .getSource(), req.getTarget()));
    }
    if (Fd2ElementTypes.RequireRelation_4006 == req.getElementType()) {
      return getGEFWrapper(new RequireRelationCreateCommand(req, req
          .getSource(), req.getTarget()));
    }
    if (Fd2ElementTypes.ExcludesRelation_4010 == req.getElementType()) {
      return getGEFWrapper(new ExcludesRelationCreateCommand(req, req
          .getSource(), req.getTarget()));
View Full Code Here


    if (Fd2ElementTypes.OptionalRelation_4009 == req.getElementType()) {
      return getGEFWrapper(new OptionalRelationCreateCommand(req, req
          .getSource(), req.getTarget()));
    }
    if (Fd2ElementTypes.RequireRelation_4006 == req.getElementType()) {
      return getGEFWrapper(new RequireRelationCreateCommand(req, req
          .getSource(), req.getTarget()));
    }
    if (Fd2ElementTypes.ExcludesRelation_4010 == req.getElementType()) {
      return getGEFWrapper(new ExcludesRelationCreateCommand(req, req
          .getSource(), req.getTarget()));
View Full Code Here

    case MandatoryRelationEditPart.VISUAL_ID:
      return getGEFWrapper(new MandatoryRelationReorientCommand(req));
    case OptionalRelationEditPart.VISUAL_ID:
      return getGEFWrapper(new OptionalRelationReorientCommand(req));
    case RequireRelationEditPart.VISUAL_ID:
      return getGEFWrapper(new RequireRelationReorientCommand(req));
    case ExcludesRelationEditPart.VISUAL_ID:
      return getGEFWrapper(new ExcludesRelationReorientCommand(req));
    }
    return super.getReorientRelationshipCommand(req);
  }
View Full Code Here

  /**
   * @generated
   */
  public Fd2EditPartProvider() {
    setFactory(new Fd2EditPartFactory());
    setAllowCaching(true);
  }
View Full Code Here

  }

  public String getFeatureNodeName() {

    FeatureNodeEditPart element = this.getSelectedFeatureElement();

    if (element != null) {
     

     
      String featureLabelText = element.getPrimaryShape()
          .getFigureFeatureNodeFigureLabel().getText();
     
      return featureLabelText != "Untiteled" ? featureLabelText : "";
    }
    return "";
View Full Code Here

   * @generated
   */
  protected void createDefaultEditPolicies() {
    super.createDefaultEditPolicies();
    installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
        new CaseOrRelationItemSemanticEditPolicy());
    installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
    // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
    // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
  }
View Full Code Here

   * @generated
   */
  protected void createDefaultEditPolicies() {
    super.createDefaultEditPolicies();
    installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
        new CaseOrRelationItemSemanticEditPolicy());
    installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
    // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
    // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
  }
View Full Code Here

  protected void createDefaultEditPolicies() {
    super.createDefaultEditPolicies();
    installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
        new DiagramItemSemanticEditPolicy());
    installEditPolicy(EditPolicyRoles.CANONICAL_ROLE,
        new DiagramCanonicalEditPolicy());
    // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.POPUPBAR_ROLE);
  }
View Full Code Here

   * @generated
   */
  protected void createDefaultEditPolicies() {
    super.createDefaultEditPolicies();
    installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
        new DiagramItemSemanticEditPolicy());
    installEditPolicy(EditPolicyRoles.CANONICAL_ROLE,
        new DiagramCanonicalEditPolicy());
    // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.POPUPBAR_ROLE);
  }
View Full Code Here

   * @generated
   */
  protected void createDefaultEditPolicies() {
    super.createDefaultEditPolicies();
    installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
        new ExcludesRelationItemSemanticEditPolicy());
  }
View Full Code Here

TOP

Related Classes of fd2.diagram.edit.policies.Fd2TextNonResizableEditPolicy

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.