Search in sources :

Example 16 with LabelDirectEditPolicy

use of org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy in project statecharts by Yakindu.

the class TextAwareExternalLabelEditPart method createDefaultEditPolicies.

@Override
protected void createDefaultEditPolicies() {
    super.createDefaultEditPolicies();
    installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
// TODO: Add a Feedback role
}
Also used : LabelDirectEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy)

Aggregations

LabelDirectEditPolicy (org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy)16 ArrayList (java.util.ArrayList)11 List (java.util.List)11 GraphicalEditPart (org.eclipse.gef.GraphicalEditPart)11 Request (org.eclipse.gef.Request)11 Command (org.eclipse.gef.commands.Command)11 NonResizableEditPolicy (org.eclipse.gef.editpolicies.NonResizableEditPolicy)11 DirectEditRequest (org.eclipse.gef.requests.DirectEditRequest)11 IGraphicalEditPart (org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart)11