mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 22:22:11 +02:00
[229131] Traditional Memory Rendering: Disable Copy To Clipboard action when no selection
This commit is contained in:
parent
1790d63fb3
commit
88f16a48e3
1 changed files with 6 additions and 2 deletions
|
@ -1063,6 +1063,10 @@ public class TraditionalRendering extends AbstractMemoryRendering implements IRe
|
||||||
manager.add(sub);
|
manager.add(sub);
|
||||||
manager.add(new Separator());
|
manager.add(new Separator());
|
||||||
|
|
||||||
|
BigInteger start = fRendering.getSelection().getStart();
|
||||||
|
BigInteger end = fRendering.getSelection().getEnd();
|
||||||
|
copyAction.setEnabled(start != null && end != null);
|
||||||
|
|
||||||
manager.add(copyAction);
|
manager.add(copyAction);
|
||||||
manager.add(copyAddressAction);
|
manager.add(copyAddressAction);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue