Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2001-09-12 11:19:43 +0000
committerDarin Swanson2001-09-12 11:19:43 +0000
commit517b2023c954df6a92221a3477cc4fda20338604 (patch)
treed7f74d469b471c6bdcb9cd5417de72992ea92c72
parent508da9c9ab66822f36838b8dc198a02c45dce6f8 (diff)
downloadeclipse.platform.debug-517b2023c954df6a92221a3477cc4fda20338604.tar.gz
eclipse.platform.debug-517b2023c954df6a92221a3477cc4fda20338604.tar.xz
eclipse.platform.debug-517b2023c954df6a92221a3477cc4fda20338604.zip
1GDXWST: ITPDUI:WIN2000 - Feature: Copy value to clipboard
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/CopyVariablesToClipboardActionDelegate.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/CopyVariablesToClipboardActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/CopyVariablesToClipboardActionDelegate.java
index 91115b4fa..8448aeaf5 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/CopyVariablesToClipboardActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/CopyVariablesToClipboardActionDelegate.java
@@ -9,6 +9,7 @@ import java.util.Iterator;
import java.util.List;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.*;
+import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.*;
/**
@@ -98,4 +99,11 @@ public class CopyVariablesToClipboardActionDelegate extends CopyToClipboardActio
return walkHierarchy(((IValue)parent).getVariable(), elements);
}
+
+ /**
+ * @see IActionDelegate
+ */
+ public void selectionChanged(IAction action, ISelection s) {
+ action.setEnabled(!s.isEmpty());
+ }
} \ No newline at end of file

Back to the top