Search in sources :

Example 1 with EntityEditPolicy

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

use of org.jkiss.dbeaver.erd.ui.policy.EntityEditPolicy 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)2 EntityContainerEditPolicy (org.jkiss.dbeaver.erd.ui.policy.EntityContainerEditPolicy)2 EntityEditPolicy (org.jkiss.dbeaver.erd.ui.policy.EntityEditPolicy)2