Search in sources :

Example 1 with StateCompartmentCreationEditPolicy

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

the class StateFigureCompartmentEditPart method createDefaultEditPolicies.

@Override
protected void createDefaultEditPolicies() {
    super.createDefaultEditPolicies();
    installEditPolicy(EditPolicyRoles.CREATION_ROLE, new StateCompartmentCreationEditPolicy());
    installEditPolicy(EditPolicyRoles.CANONICAL_ROLE, new StateCompartmentCanonicalEditPolicy());
    installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
    installEditPolicy(EditPolicy.LAYOUT_ROLE, new CompartmentLayoutEditPolicy(SGraphPackage.Literals.COMPOSITE_ELEMENT__REGIONS));
    removeEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
}
Also used : CompartmentLayoutEditPolicy(org.yakindu.base.gmf.runtime.editpolicies.CompartmentLayoutEditPolicy) StateCompartmentCreationEditPolicy(org.yakindu.sct.ui.editor.policies.StateCompartmentCreationEditPolicy) StateCompartmentCanonicalEditPolicy(org.yakindu.sct.ui.editor.policies.StateCompartmentCanonicalEditPolicy) DragDropEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy)

Aggregations

DragDropEditPolicy (org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy)1 CompartmentLayoutEditPolicy (org.yakindu.base.gmf.runtime.editpolicies.CompartmentLayoutEditPolicy)1 StateCompartmentCanonicalEditPolicy (org.yakindu.sct.ui.editor.policies.StateCompartmentCanonicalEditPolicy)1 StateCompartmentCreationEditPolicy (org.yakindu.sct.ui.editor.policies.StateCompartmentCreationEditPolicy)1