Search in sources :

Example 1 with EnlargeContainerEditPolicy

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

the class ExitEditPart method createDefaultEditPolicies.

@Override
protected void createDefaultEditPolicies() {
    super.createDefaultEditPolicies();
    installEditPolicy(EditPolicyRoles.CONNECTION_HANDLES_ROLE, new OneWayConnectionHandlesEditPolicy(HandleDirection.INCOMING));
    installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NonResizableEditPolicyEx());
    installEditPolicy(EnlargeContainerEditPolicy.ROLE, new EnlargeContainerEditPolicy());
}
Also used : NonResizableEditPolicyEx(org.eclipse.gmf.runtime.diagram.ui.editpolicies.NonResizableEditPolicyEx) OneWayConnectionHandlesEditPolicy(org.yakindu.base.gmf.runtime.editpolicies.OneWayConnectionHandlesEditPolicy) EnlargeContainerEditPolicy(org.yakindu.sct.ui.editor.policies.EnlargeContainerEditPolicy)

Example 2 with EnlargeContainerEditPolicy

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

the class EntryEditPart method createDefaultEditPolicies.

@Override
protected void createDefaultEditPolicies() {
    super.createDefaultEditPolicies();
    installEditPolicy(EditPolicyRoles.CONNECTION_HANDLES_ROLE, new OneWayConnectionHandlesEditPolicy(HandleDirection.OUTGOING));
    installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NonResizableEditPolicyEx());
    installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new ContextSensitiveHelpPolicy(HelpContextIds.SC_PROPERTIES_ENTRY_ENTRYKIND));
    installEditPolicy(EnlargeContainerEditPolicy.ROLE, new EnlargeContainerEditPolicy());
}
Also used : NonResizableEditPolicyEx(org.eclipse.gmf.runtime.diagram.ui.editpolicies.NonResizableEditPolicyEx) OneWayConnectionHandlesEditPolicy(org.yakindu.base.gmf.runtime.editpolicies.OneWayConnectionHandlesEditPolicy) ContextSensitiveHelpPolicy(org.yakindu.sct.ui.editor.policies.ContextSensitiveHelpPolicy) EnlargeContainerEditPolicy(org.yakindu.sct.ui.editor.policies.EnlargeContainerEditPolicy)

Example 3 with EnlargeContainerEditPolicy

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

the class FinalStateEditPart method createDefaultEditPolicies.

@Override
protected void createDefaultEditPolicies() {
    super.createDefaultEditPolicies();
    installEditPolicy(EditPolicyRoles.CONNECTION_HANDLES_ROLE, new OneWayConnectionHandlesEditPolicy(HandleDirection.INCOMING));
    installEditPolicy(EnlargeContainerEditPolicy.ROLE, new EnlargeContainerEditPolicy());
    installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new FeedbackGraphicalNodeEditPolicy());
}
Also used : OneWayConnectionHandlesEditPolicy(org.yakindu.base.gmf.runtime.editpolicies.OneWayConnectionHandlesEditPolicy) FeedbackGraphicalNodeEditPolicy(org.yakindu.sct.ui.editor.policies.FeedbackGraphicalNodeEditPolicy) EnlargeContainerEditPolicy(org.yakindu.sct.ui.editor.policies.EnlargeContainerEditPolicy)

Example 4 with EnlargeContainerEditPolicy

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

the class SynchronizationEditPart method createDefaultEditPolicies.

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

Example 5 with EnlargeContainerEditPolicy

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

the class StateEditPart method createDefaultEditPolicies.

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

Aggregations

EnlargeContainerEditPolicy (org.yakindu.sct.ui.editor.policies.EnlargeContainerEditPolicy)6 FeedbackGraphicalNodeEditPolicy (org.yakindu.sct.ui.editor.policies.FeedbackGraphicalNodeEditPolicy)4 OneWayConnectionHandlesEditPolicy (org.yakindu.base.gmf.runtime.editpolicies.OneWayConnectionHandlesEditPolicy)3 NonResizableEditPolicyEx (org.eclipse.gmf.runtime.diagram.ui.editpolicies.NonResizableEditPolicyEx)2 ContextSensitiveHelpPolicy (org.yakindu.sct.ui.editor.policies.ContextSensitiveHelpPolicy)1 FixedAspectRatioResizableEditPolicy (org.yakindu.sct.ui.editor.policies.FixedAspectRatioResizableEditPolicy)1 PreferredSizeHandlerEditPolicy (org.yakindu.sct.ui.editor.policies.PreferredSizeHandlerEditPolicy)1