Search in sources :

Example 1 with ResizableEditPolicy

use of org.eclipse.gef.editpolicies.ResizableEditPolicy in project Palladio-Editors-Sirius by PalladioSimulator.

the class AbstractRotatableImageEditPart method getPrimaryDragEditPolicy.

/**
 * @generated
 */
public EditPolicy getPrimaryDragEditPolicy() {
    EditPolicy result = super.getPrimaryDragEditPolicy();
    if (result instanceof ResizableEditPolicy) {
        ResizableEditPolicy ep = (ResizableEditPolicy) result;
        ep.setResizeDirections(PositionConstants.NONE);
    }
    return result;
}
Also used : ResizableEditPolicy(org.eclipse.gef.editpolicies.ResizableEditPolicy) NonResizableEditPolicy(org.eclipse.gef.editpolicies.NonResizableEditPolicy) LayoutEditPolicy(org.eclipse.gef.editpolicies.LayoutEditPolicy) EditPolicy(org.eclipse.gef.EditPolicy) ResizableEditPolicy(org.eclipse.gef.editpolicies.ResizableEditPolicy) NonResizableEditPolicy(org.eclipse.gef.editpolicies.NonResizableEditPolicy)

Aggregations

EditPolicy (org.eclipse.gef.EditPolicy)1 LayoutEditPolicy (org.eclipse.gef.editpolicies.LayoutEditPolicy)1 NonResizableEditPolicy (org.eclipse.gef.editpolicies.NonResizableEditPolicy)1 ResizableEditPolicy (org.eclipse.gef.editpolicies.ResizableEditPolicy)1