use of org.eclipse.debug.ui.actions.LaunchShortcutsAction in project dbeaver by dbeaver.
the class DebugConfigurationMenuContributor method fillContributionItems.
@Override
protected void fillContributionItems(final List<IContributionItem> menuItems) {
// Fill recent debugs
LaunchConfigurationManager launchConfigurationManager = DebugUIPlugin.getDefault().getLaunchConfigurationManager();
LaunchHistory launchHistory = launchConfigurationManager.getLaunchHistory(DebugUI.DEBUG_LAUNCH_GROUP_ID);
ILaunchConfiguration[] filteredConfigs = LaunchConfigurationManager.filterConfigs(launchHistory.getHistory());
for (ILaunchConfiguration launch : filteredConfigs) {
LaunchAction action = new LaunchAction(launch, "debug");
menuItems.add(new ActionContributionItem(action));
}
// Fill configuration actions
if (filteredConfigs.length > 0) {
menuItems.add(new Separator());
}
menuItems.add(new ActionContributionItem(new LaunchShortcutsAction(DebugUI.DEBUG_LAUNCH_GROUP_ID)));
menuItems.add(new ActionContributionItem(new DebugLaunchDialogAction()));
}
use of org.eclipse.debug.ui.actions.LaunchShortcutsAction in project dbeaver by serge-rider.
the class DebugConfigurationMenuContributor method fillContributionItems.
@Override
protected void fillContributionItems(final List<IContributionItem> menuItems) {
// Fill recent debugs
LaunchConfigurationManager launchConfigurationManager = DebugUIPlugin.getDefault().getLaunchConfigurationManager();
LaunchHistory launchHistory = launchConfigurationManager.getLaunchHistory(DebugUI.DEBUG_LAUNCH_GROUP_ID);
ILaunchConfiguration[] filteredConfigs = LaunchConfigurationManager.filterConfigs(launchHistory.getHistory());
for (ILaunchConfiguration launch : filteredConfigs) {
LaunchAction action = new LaunchAction(launch, "debug");
menuItems.add(new ActionContributionItem(action));
}
// Fill configuration actions
if (filteredConfigs.length > 0) {
menuItems.add(new Separator());
}
menuItems.add(new ActionContributionItem(new LaunchShortcutsAction(DebugUI.DEBUG_LAUNCH_GROUP_ID)));
menuItems.add(new ActionContributionItem(new DebugLaunchDialogAction()));
}
Aggregations