Search in sources :

Example 1 with FixedAspectRatioResizableEditPolicy

use of org.yakindu.sct.ui.editor.policies.FixedAspectRatioResizableEditPolicy in project statecharts by Yakindu.

the class ChoiceEditPart method createDefaultEditPolicies.

@Override
protected void createDefaultEditPolicies() {
    super.createDefaultEditPolicies();
    installEditPolicy(EnlargeContainerEditPolicy.ROLE, new EnlargeContainerEditPolicy());
    installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new FeedbackGraphicalNodeEditPolicy());
    installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new FixedAspectRatioResizableEditPolicy());
}
Also used : FixedAspectRatioResizableEditPolicy(org.yakindu.sct.ui.editor.policies.FixedAspectRatioResizableEditPolicy) FeedbackGraphicalNodeEditPolicy(org.yakindu.sct.ui.editor.policies.FeedbackGraphicalNodeEditPolicy) EnlargeContainerEditPolicy(org.yakindu.sct.ui.editor.policies.EnlargeContainerEditPolicy)

Aggregations

EnlargeContainerEditPolicy (org.yakindu.sct.ui.editor.policies.EnlargeContainerEditPolicy)1 FeedbackGraphicalNodeEditPolicy (org.yakindu.sct.ui.editor.policies.FeedbackGraphicalNodeEditPolicy)1 FixedAspectRatioResizableEditPolicy (org.yakindu.sct.ui.editor.policies.FixedAspectRatioResizableEditPolicy)1