Search in sources :

Example 1 with DropPVtoContainerEditPolicy

use of org.csstudio.opibuilder.dnd.DropPVtoContainerEditPolicy in project yamcs-studio by yamcs.

the class AbstractContainerEditpart method createEditPolicies.

@Override
protected void createEditPolicies() {
    super.createEditPolicies();
    installEditPolicy(EditPolicy.CONTAINER_ROLE, new WidgetContainerEditPolicy());
    installEditPolicy(EditPolicy.LAYOUT_ROLE, getExecutionMode() == ExecutionMode.EDIT_MODE ? new WidgetXYLayoutEditPolicy() : null);
    // the snap feedback effect
    // $NON-NLS-1$
    installEditPolicy("Snap Feedback", new SnapFeedbackPolicy());
    if (getExecutionMode() == ExecutionMode.EDIT_MODE)
        installEditPolicy(DropPVtoPVWidgetEditPolicy.DROP_PV_ROLE, new DropPVtoContainerEditPolicy());
}
Also used : WidgetContainerEditPolicy(org.csstudio.opibuilder.editpolicies.WidgetContainerEditPolicy) WidgetXYLayoutEditPolicy(org.csstudio.opibuilder.editpolicies.WidgetXYLayoutEditPolicy) SnapFeedbackPolicy(org.eclipse.gef.editpolicies.SnapFeedbackPolicy) DropPVtoContainerEditPolicy(org.csstudio.opibuilder.dnd.DropPVtoContainerEditPolicy)

Aggregations

DropPVtoContainerEditPolicy (org.csstudio.opibuilder.dnd.DropPVtoContainerEditPolicy)1 WidgetContainerEditPolicy (org.csstudio.opibuilder.editpolicies.WidgetContainerEditPolicy)1 WidgetXYLayoutEditPolicy (org.csstudio.opibuilder.editpolicies.WidgetXYLayoutEditPolicy)1 SnapFeedbackPolicy (org.eclipse.gef.editpolicies.SnapFeedbackPolicy)1