use of org.jkiss.dbeaver.erd.ui.editor.tools.ChangeZOrderAction in project dbeaver by dbeaver.
the class ERDEditorPart method fillPartContextMenu.
public void fillPartContextMenu(IMenuManager menu, IStructuredSelection selection) {
if (selection.isEmpty()) {
return;
}
menu.add(new ChangeZOrderAction(this, selection, true));
menu.add(new ChangeZOrderAction(this, selection, false));
menu.add(new SetPartColorAction(this, selection));
ResetPartColorAction resetPartColorAction = new ResetPartColorAction(this, selection);
if (resetPartColorAction.isEnabled()) {
menu.add(resetPartColorAction);
}
SetPartSettingsAction settingsAction = new SetPartSettingsAction(this, selection);
if (settingsAction.isEnabled()) {
menu.add(settingsAction);
}
/*
Set<IAction> actionSet = new HashSet<>();
for (Object actionId : getSelectionActions()) {
IAction action = getActionRegistry().getAction(actionId);
if (!actionSet.contains(action)) {
menu.add(action);
actionSet.add(action);
}
}
*/
}
use of org.jkiss.dbeaver.erd.ui.editor.tools.ChangeZOrderAction in project dbeaver by serge-rider.
the class ERDEditorPart method fillPartContextMenu.
public void fillPartContextMenu(IMenuManager menu, IStructuredSelection selection) {
if (selection.isEmpty()) {
return;
}
menu.add(new ChangeZOrderAction(this, selection, true));
menu.add(new ChangeZOrderAction(this, selection, false));
menu.add(new SetPartColorAction(this, selection));
ResetPartColorAction resetPartColorAction = new ResetPartColorAction(this, selection);
if (resetPartColorAction.isEnabled()) {
menu.add(resetPartColorAction);
}
SetPartSettingsAction settingsAction = new SetPartSettingsAction(this, selection);
if (settingsAction.isEnabled()) {
menu.add(settingsAction);
}
/*
Set<IAction> actionSet = new HashSet<>();
for (Object actionId : getSelectionActions()) {
IAction action = getActionRegistry().getAction(actionId);
if (!actionSet.contains(action)) {
menu.add(action);
actionSet.add(action);
}
}
*/
}
Aggregations