Package org.eclipse.gef.editpolicies

Examples of org.eclipse.gef.editpolicies.ResizableEditPolicy


   * @generated
   */
  public EditPolicy getPrimaryDragEditPolicy() {
    EditPolicy result = super.getPrimaryDragEditPolicy();
    if (result instanceof ResizableEditPolicy) {
      ResizableEditPolicy ep = (ResizableEditPolicy) result;
      ep.setResizeDirections(PositionConstants.NONE);
    }
    return result;
  }
View Full Code Here


}

protected EditPolicy createChildEditPolicy(EditPart child) {
  if (child instanceof LEDEditPart
      || child instanceof OutputEditPart) {
    ResizableEditPolicy policy = new LogicResizableEditPolicy();
    policy.setResizeDirections(0);
    return policy;
  } else if (child instanceof LogicLabelEditPart) {
    ResizableEditPolicy policy = new LogicResizableEditPolicy();
    policy.setResizeDirections(PositionConstants.EAST | PositionConstants.WEST);
    return policy;
  }
 
  return new LogicResizableEditPolicy();
}
View Full Code Here

TOP

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

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.