Search in sources :

Example 1 with BasicConnectionPolicy

use of com.archimatetool.editor.diagram.policies.BasicConnectionPolicy in project archi by archimatetool.

the class DiagramImageEditPart method createEditPolicies.

@Override
protected void createEditPolicies() {
    // Allow parts to be joined together
    installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new BasicConnectionPolicy());
    // Add a policy to handle editing the Parts (for example, deleting a part)
    installEditPolicy(EditPolicy.COMPONENT_ROLE, new PartComponentEditPolicy());
    updateEditPolicies();
}
Also used : BasicConnectionPolicy(com.archimatetool.editor.diagram.policies.BasicConnectionPolicy) PartComponentEditPolicy(com.archimatetool.editor.diagram.policies.PartComponentEditPolicy)

Aggregations

BasicConnectionPolicy (com.archimatetool.editor.diagram.policies.BasicConnectionPolicy)1 PartComponentEditPolicy (com.archimatetool.editor.diagram.policies.PartComponentEditPolicy)1