Search in sources :

Example 1 with CompositeElementCanonicalEditPolicy

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

the class StatechartDiagramEditPart method createDefaultEditPolicies.

@Override
protected void createDefaultEditPolicies() {
    installEditPolicy(EditPolicyRoles.CANONICAL_ROLE, new CompositeElementCanonicalEditPolicy());
    super.createDefaultEditPolicies();
    installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
    installEditPolicy(EditPolicy.LAYOUT_ROLE, new XYLayoutEditPolicy());
    removeEditPolicy(EditPolicyRoles.POPUPBAR_ROLE);
    installEditPolicy(EditPolicyRoles.SNAP_FEEDBACK_ROLE, new SimpleSnapFeedbackPolicy());
}
Also used : CompositeElementCanonicalEditPolicy(org.yakindu.sct.ui.editor.policies.CompositeElementCanonicalEditPolicy) XYLayoutEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.XYLayoutEditPolicy) DragDropEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy)

Aggregations

DragDropEditPolicy (org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy)1 XYLayoutEditPolicy (org.eclipse.gmf.runtime.diagram.ui.editpolicies.XYLayoutEditPolicy)1 CompositeElementCanonicalEditPolicy (org.yakindu.sct.ui.editor.policies.CompositeElementCanonicalEditPolicy)1