Search in sources :

Example 1 with DiagramLayoutAction

use of org.jkiss.dbeaver.ext.erd.action.DiagramLayoutAction in project dbeaver by serge-rider.

the class ERDEditorContextMenuProvider method buildContextMenu.

/**
	 * @see ContextMenuProvider#buildContextMenu(org.eclipse.jface.action.IMenuManager)
	 */
@Override
public void buildContextMenu(IMenuManager menu) {
    if (editor.isLoaded()) {
        GEFActionConstants.addStandardActionGroups(menu);
        menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
        menu.add(new Separator());
        editor.fillAttributeVisibilityMenu(menu);
        menu.add(new DiagramLayoutAction(editor));
    }
}
Also used : DiagramLayoutAction(org.jkiss.dbeaver.ext.erd.action.DiagramLayoutAction) Separator(org.eclipse.jface.action.Separator)

Aggregations

Separator (org.eclipse.jface.action.Separator)1 DiagramLayoutAction (org.jkiss.dbeaver.ext.erd.action.DiagramLayoutAction)1