Package org.eclipse.gef.editpolicies

Examples of org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy


    return ((Box) getModel()).getTargetConnections();
  }
  
    protected void createEditPolicies() {
        installEditPolicy(EditPolicy.COMPONENT_ROLE, new PageElementEditPolicy());
        installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy(){

            protected Command getConnectionCompleteCommand( CreateConnectionRequest request ) {
                ConnectionCreateCommand cmd = (ConnectionCreateCommand) request.getStartCommand();
                cmd.setTarget((Box) getHost().getModel());
                return cmd;
View Full Code Here


    protected void createEditPolicies() {
        // allow removal of the associated model element
        installEditPolicy(EditPolicy.COMPONENT_ROLE, new ShapeComponentEditPolicy());
        // allow the creation of connections and
        // and the reconnection of connections between Shape instances
        installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy() {
            /*
             * (non-Javadoc)
             *
             * @see org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy# getConnectionCompleteCommand
             * (org.eclipse.gef.requests.CreateConnectionRequest)
 
View Full Code Here

TOP

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

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.