use of com.archimatetool.editor.diagram.policies.PartDirectEditTitlePolicy in project archi by archimatetool.
the class GroupEditPart method createEditPolicies.
@Override
protected void createEditPolicies() {
// Allow parts to be connected
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new ArchimateDiagramConnectionPolicy());
// Add a policy to handle directly editing the Parts (for example, directly renaming a part)
installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new PartDirectEditTitlePolicy());
// Add a policy to handle editing the Parts (Deleting and Orphaning)
installEditPolicy(EditPolicy.COMPONENT_ROLE, new PartComponentEditPolicy());
// Add a policy for Native DND
// $NON-NLS-1$
installEditPolicy("DND", new ArchimateDNDEditPolicy());
// Install a custom layout policy that handles dragging things around and creating new objects
installEditPolicy(EditPolicy.LAYOUT_ROLE, new ArchimateDiagramLayoutPolicy());
// Orphaning
installEditPolicy(EditPolicy.CONTAINER_ROLE, new BasicContainerEditPolicy());
// Snap to Geometry feedback
// $NON-NLS-1$
installEditPolicy("Snap Feedback", new SnapFeedbackPolicy());
// Selection Feedback
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new ContainerHighlightEditPolicy());
}
use of com.archimatetool.editor.diagram.policies.PartDirectEditTitlePolicy in project archi by archimatetool.
the class CanvasDiagramModelReferenceEditPart method createEditPolicies.
@Override
protected void createEditPolicies() {
// Allow parts to be connected
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CanvasConnectionPolicy());
// Add a policy to handle directly editing the name
installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new PartDirectEditTitlePolicy());
// Add a policy to handle editing the Parts (for example, deleting a part)
installEditPolicy(EditPolicy.COMPONENT_ROLE, new PartComponentEditPolicy());
}
use of com.archimatetool.editor.diagram.policies.PartDirectEditTitlePolicy in project archi by archimatetool.
the class SketchActorEditPart method createEditPolicies.
@Override
protected void createEditPolicies() {
// Allow parts to be connected together
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new SketchConnectionPolicy());
// Add a policy to handle directly editing the Part
installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new PartDirectEditTitlePolicy());
// Add a policy to handle editing the Parts (for example, deleting a part)
installEditPolicy(EditPolicy.COMPONENT_ROLE, new PartComponentEditPolicy());
}
use of com.archimatetool.editor.diagram.policies.PartDirectEditTitlePolicy in project archi by archimatetool.
the class SketchDiagramModelReferenceEditPart method createEditPolicies.
@Override
protected void createEditPolicies() {
// Allow parts to be connected
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new SketchConnectionPolicy());
// Add a policy to handle directly editing the name
installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new PartDirectEditTitlePolicy());
// Add a policy to handle editing the Parts (for example, deleting a part)
installEditPolicy(EditPolicy.COMPONENT_ROLE, new PartComponentEditPolicy());
}
use of com.archimatetool.editor.diagram.policies.PartDirectEditTitlePolicy in project archi by archimatetool.
the class ArchimateElementEditPart method createEditPolicies.
@Override
protected void createEditPolicies() {
super.createEditPolicies();
// Add a policy to handle directly editing the Parts (for example, directly renaming a part)
installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new PartDirectEditTitlePolicy());
// Add a policy to handle deletion and orphaning
installEditPolicy(EditPolicy.COMPONENT_ROLE, new PartComponentEditPolicy());
// Add a policy for Native DND
// $NON-NLS-1$
installEditPolicy("DND", new ArchimateDNDEditPolicy());
// Install a custom layout policy that handles dragging things around and creating new objects
installEditPolicy(EditPolicy.LAYOUT_ROLE, new ArchimateContainerLayoutPolicy());
// Orphaning
installEditPolicy(EditPolicy.CONTAINER_ROLE, new ArchimateContainerEditPolicy());
// Snap to Geometry feedback
// $NON-NLS-1$
installEditPolicy("Snap Feedback", new SnapFeedbackPolicy());
// Selection Feedback
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new ContainerHighlightEditPolicy());
}
Aggregations