Search in sources :

Example 1 with EntityConnectionEditPolicy

use of org.jkiss.dbeaver.erd.ui.policy.EntityConnectionEditPolicy 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 EntityConnectionEditPolicy

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

the class EntityPart method createEditPolicies.

// ******************* Editing related methods *********************/
/**
 * 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 EntityEditPolicy());
    // installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new EntityDirectEditPolicy());
    }
}
Also used : EntityContainerEditPolicy(org.jkiss.dbeaver.erd.ui.policy.EntityContainerEditPolicy) EntityConnectionEditPolicy(org.jkiss.dbeaver.erd.ui.policy.EntityConnectionEditPolicy) EntityEditPolicy(org.jkiss.dbeaver.erd.ui.policy.EntityEditPolicy)

Example 3 with EntityConnectionEditPolicy

use of org.jkiss.dbeaver.erd.ui.policy.EntityConnectionEditPolicy 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)

Example 4 with EntityConnectionEditPolicy

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

the class EntityPart method createEditPolicies.

// ******************* Editing related methods *********************/
/**
 * 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 EntityEditPolicy());
    // installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new EntityDirectEditPolicy());
    }
}
Also used : EntityContainerEditPolicy(org.jkiss.dbeaver.erd.ui.policy.EntityContainerEditPolicy) EntityConnectionEditPolicy(org.jkiss.dbeaver.erd.ui.policy.EntityConnectionEditPolicy) EntityEditPolicy(org.jkiss.dbeaver.erd.ui.policy.EntityEditPolicy)

Aggregations

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