Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -116,7 +116,15 @@ protected void performAction() {
*/
@Override
protected boolean updateSelection(IStructuredSelection selection) {
return selection.size() > 1;
if (selection.size() <= 1) {
Comment thread
fedejeanne marked this conversation as resolved.
return false;
}
for (Object selected : selection) {
if (selected instanceof ILaunchConfiguration launchConfig && launchConfig.isPrototype()) {
return false;
}
}
return true;
}

@Override
Expand Down
Loading