use of com.archimatetool.editor.diagram.policies.PartDirectEditTitlePolicy in project archi by archimatetool.
the class DiagramModelReferenceEditPart 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 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());
}
Aggregations