Search in sources :

Example 1 with NoteEditPolicy

use of org.jkiss.dbeaver.erd.ui.policy.NoteEditPolicy in project dbeaver by serge-rider.

the class NotePart method createEditPolicies.

/**
 * Creates edit policies and associates these with roles
 */
@Override
protected void createEditPolicies() {
    final boolean editEnabled = isEditEnabled();
    if (editEnabled) {
        installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new EntityConnectionEditPolicy());
        // installEditPolicy(EditPolicy.LAYOUT_ROLE, new EntityLayoutEditPolicy());
        // installEditPolicy(EditPolicy.CONTAINER_ROLE, new EntityContainerEditPolicy());
        installEditPolicy(EditPolicy.COMPONENT_ROLE, new NoteEditPolicy());
        installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new NoteDirectEditPolicy());
    // installEditPolicy(EditPolicy.COMPONENT_ROLE, new NoteDirectEditPolicy());
    // installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new ResizableEditPolicy());
    }
}
Also used : EntityConnectionEditPolicy(org.jkiss.dbeaver.erd.ui.policy.EntityConnectionEditPolicy) NoteEditPolicy(org.jkiss.dbeaver.erd.ui.policy.NoteEditPolicy) NoteDirectEditPolicy(org.jkiss.dbeaver.erd.ui.policy.NoteDirectEditPolicy)

Example 2 with NoteEditPolicy

use of org.jkiss.dbeaver.erd.ui.policy.NoteEditPolicy in project dbeaver by dbeaver.

the class NotePart method createEditPolicies.

/**
 * Creates edit policies and associates these with roles
 */
@Override
protected void createEditPolicies() {
    final boolean editEnabled = isEditEnabled();
    if (editEnabled) {
        installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new EntityConnectionEditPolicy());
        // installEditPolicy(EditPolicy.LAYOUT_ROLE, new EntityLayoutEditPolicy());
        // installEditPolicy(EditPolicy.CONTAINER_ROLE, new EntityContainerEditPolicy());
        installEditPolicy(EditPolicy.COMPONENT_ROLE, new NoteEditPolicy());
        installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new NoteDirectEditPolicy());
    // installEditPolicy(EditPolicy.COMPONENT_ROLE, new NoteDirectEditPolicy());
    // installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new ResizableEditPolicy());
    }
}
Also used : EntityConnectionEditPolicy(org.jkiss.dbeaver.erd.ui.policy.EntityConnectionEditPolicy) NoteEditPolicy(org.jkiss.dbeaver.erd.ui.policy.NoteEditPolicy) NoteDirectEditPolicy(org.jkiss.dbeaver.erd.ui.policy.NoteDirectEditPolicy)

Aggregations

EntityConnectionEditPolicy (org.jkiss.dbeaver.erd.ui.policy.EntityConnectionEditPolicy)2 NoteDirectEditPolicy (org.jkiss.dbeaver.erd.ui.policy.NoteDirectEditPolicy)2 NoteEditPolicy (org.jkiss.dbeaver.erd.ui.policy.NoteEditPolicy)2