1
0
Fork 0
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:
Ted Williams 2009-03-14 06:49:15 +00:00
parent 1790d63fb3
commit 88f16a48e3

View file

@ -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);