diff --git a/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/QuickGroupLaunch.java b/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/QuickGroupLaunch.java index 1901ad797ba..6ae5af20031 100644 --- a/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/QuickGroupLaunch.java +++ b/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/QuickGroupLaunch.java @@ -81,7 +81,7 @@ protected void performAction() { IStructuredSelection selection = getStructuredSelection(); for (Object selected : selection) { - if (selected instanceof ILaunchConfiguration launchConfig) { + if (selected instanceof ILaunchConfiguration launchConfig && !launchConfig.isPrototype()) { GroupLaunchElement element = new GroupLaunchElement(); element.index = input.size(); element.enabled = true; @@ -116,7 +116,15 @@ protected void performAction() { */ @Override protected boolean updateSelection(IStructuredSelection selection) { - return selection.size() > 1; + if (selection.size() <= 1) { + return false; + } + for (Object selected : selection) { + if (selected instanceof ILaunchConfiguration launchConfig && launchConfig.isPrototype()) { + return false; + } + } + return true; } @Override