Package org.eclipse.gef.editpolicies

Examples of org.eclipse.gef.editpolicies.ConnectionEditPolicy


  protected void createEditPolicies() {
    if (logger.isLoggable(Level.FINE)) {
      //$ANALYSIS-IGNORE
      logger.fine("createEditPolicies()");
    }
    installEditPolicy(EditPolicy.CONNECTION_ROLE, new ConnectionEditPolicy() {

      protected final Logger logger = Logger.getLogger("ConnectionEditPolicy");

      /**
       * @see org.eclipse.gef.editpolicies.ConnectionEditPolicy#getDeleteCommand(org.eclipse.gef.requests.GroupRequest)
View Full Code Here


    connection.setLineStyle(Graphics.LINE_SOLID);
    return connection;
  }
  protected void createEditPolicies() {
    installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new ConnectionEndpointEditPolicy());
    installEditPolicy(EditPolicy.CONNECTION_ROLE, new ConnectionEditPolicy() {
      protected Command getDeleteCommand(GroupRequest request) {
        return new ConnectionDeleteCommand((Connection) getModel());
      }
    });
  }
View Full Code Here

    protected void createEditPolicies() {
        // Selection handle edit policy.
        // Makes the connection show a feedback, when selected by the user.
        installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new ConnectionEndpointEditPolicy());
        // Allows the removal of the connection model element
        installEditPolicy(EditPolicy.CONNECTION_ROLE, new ConnectionEditPolicy() {
            protected Command getDeleteCommand(GroupRequest request) {
                return new ConnectionDeleteCommand(getCastedModel());
            }
        });
    }
View Full Code Here

TOP

Related Classes of org.eclipse.gef.editpolicies.ConnectionEditPolicy

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.