Package org.gvt.editpolicy

Source Code of org.gvt.editpolicy.ChsConnectionEditPolicy

package org.gvt.editpolicy;

import org.eclipse.gef.commands.Command;
import org.eclipse.gef.editpolicies.ConnectionEditPolicy;
import org.eclipse.gef.requests.GroupRequest;
import org.gvt.command.DeleteConnectionCommand;

/**
* @author Cihan Kucukkececi
*
* Copyright: I-Vis Research Group, Bilkent University, 2007
*/
public class ChsConnectionEditPolicy extends ConnectionEditPolicy
{
  /* (�� Javadoc)
   * @see org.eclipse.gef.editpolicies.ConnectionEditPolicy#getDeleteCommand(org.eclipse.gef.requests.GroupRequest)
   */
  protected Command getDeleteCommand(GroupRequest request)
  {
    DeleteConnectionCommand command = new DeleteConnectionCommand();
    command.setConnectionModel(getHost().getModel());
    return command;
  }
}
TOP

Related Classes of org.gvt.editpolicy.ChsConnectionEditPolicy

TOP
Copyright © 2018 www.massapi.com. 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.