Skip to content

Commit 6f6f65e

Browse files
SougandhSlaeubi
authored andcommitted
Disable Copy action for empty selection
Disables Copy Expressions, Copy Breakpoint, Copy Stack actions if there are no selections
1 parent e7e5a03 commit 6f6f65e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/VirtualCopyToClipboardActionDelegate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ protected void doAction(Object element) {
371371
@Override
372372
protected boolean getEnableStateForSelection(IStructuredSelection selection) {
373373
if (selection.isEmpty()) {
374-
return true;
374+
return false;
375375
} else {
376376
return super.getEnableStateForSelection(selection);
377377
}

0 commit comments

Comments
 (0)