Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2001-08-08 13:07:16 +0000
committerDarin Swanson2001-08-08 13:07:16 +0000
commit46d92e2d2491f4e5c2f156c60e8fef719336310f (patch)
tree4f87385c3ed19f162beaa4c08e1205ab93c12906
parent770858c3e736ce6c51832f774fb33e7224fe8fc0 (diff)
downloadeclipse.platform.debug-46d92e2d2491f4e5c2f156c60e8fef719336310f.tar.gz
eclipse.platform.debug-46d92e2d2491f4e5c2f156c60e8fef719336310f.tar.xz
eclipse.platform.debug-46d92e2d2491f4e5c2f156c60e8fef719336310f.zip
1GFMLTG: ITPDUI:WIN2000 - Copy stack only copies frame
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/CopyToClipboardActionDelegate.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/CopyToClipboardActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/CopyToClipboardActionDelegate.java
index 6438e7830..25c58c792 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/CopyToClipboardActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/CopyToClipboardActionDelegate.java
@@ -118,6 +118,11 @@ public class CopyToClipboardActionDelegate extends ControlActionDelegate {
});
}
+ /**
+ * Removes the duplicate items from the selection.
+ * That is, if both a parent and a child are in a selection
+ * remove the child.
+ */
protected Iterator pruneSelection(LaunchesView view) {
IStructuredSelection selection= (IStructuredSelection)view.getSite().getSelectionProvider().getSelection();
List elements= new ArrayList(selection.size());
@@ -135,6 +140,10 @@ public class CopyToClipboardActionDelegate extends ControlActionDelegate {
return elements.iterator();
}
+ /**
+ * Returns whether the parent of the specified
+ * debug element is already contained in the collection.
+ */
protected boolean walkHierarchy(IDebugElement de, List elements) {
IDebugElement parent= de.getParent();
if (parent == null) {

Back to the top