Search in sources :

Example 6 with BasicContainerEditPolicy

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

the class CanvasDiagramPart method createEditPolicies.

@Override
protected void createEditPolicies() {
    updateEditPolicies();
    // Install a policy for DND support
    // $NON-NLS-1$
    installEditPolicy("DND", new CanvasDNDEditPolicy());
    // And we need to install this Group Container Policy here as well as in the GroupEditpart
    installEditPolicy(EditPolicy.CONTAINER_ROLE, new BasicContainerEditPolicy());
    // Snap to Geometry feedback
    // $NON-NLS-1$
    installEditPolicy("Snap Feedback", new SnapFeedbackPolicy());
}
Also used : CanvasDNDEditPolicy(com.archimatetool.canvas.policies.CanvasDNDEditPolicy) BasicContainerEditPolicy(com.archimatetool.editor.diagram.policies.BasicContainerEditPolicy) SnapFeedbackPolicy(org.eclipse.gef.editpolicies.SnapFeedbackPolicy)

Aggregations

BasicContainerEditPolicy (com.archimatetool.editor.diagram.policies.BasicContainerEditPolicy)6 SnapFeedbackPolicy (org.eclipse.gef.editpolicies.SnapFeedbackPolicy)6 ContainerHighlightEditPolicy (com.archimatetool.editor.diagram.policies.ContainerHighlightEditPolicy)3 PartComponentEditPolicy (com.archimatetool.editor.diagram.policies.PartComponentEditPolicy)3 CanvasDNDEditPolicy (com.archimatetool.canvas.policies.CanvasDNDEditPolicy)2 ArchimateDNDEditPolicy (com.archimatetool.editor.diagram.policies.ArchimateDNDEditPolicy)2 ArchimateDiagramLayoutPolicy (com.archimatetool.editor.diagram.policies.ArchimateDiagramLayoutPolicy)2 DiagramLayoutPolicy (com.archimatetool.editor.diagram.policies.DiagramLayoutPolicy)2 SketchDNDEditPolicy (com.archimatetool.editor.diagram.sketch.policies.SketchDNDEditPolicy)2 CanvasConnectionPolicy (com.archimatetool.canvas.policies.CanvasConnectionPolicy)1 ArchimateDiagramConnectionPolicy (com.archimatetool.editor.diagram.policies.ArchimateDiagramConnectionPolicy)1 PartDirectEditTitlePolicy (com.archimatetool.editor.diagram.policies.PartDirectEditTitlePolicy)1 SketchConnectionPolicy (com.archimatetool.editor.diagram.sketch.policies.SketchConnectionPolicy)1