Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2010-03-18 13:34:26 +0000
committerDarin Wright2010-03-18 13:34:26 +0000
commite495846db319468345a25e8cb5e96c807570ab1c (patch)
tree803e74e471ec77532377bbf4f8178a6cc3123121 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsDragAdapter.java
parentcfc501054dfcf9a88fe6650e770413cc92acd9ed (diff)
downloadeclipse.platform.debug-e495846db319468345a25e8cb5e96c807570ab1c.tar.gz
eclipse.platform.debug-e495846db319468345a25e8cb5e96c807570ab1c.tar.xz
eclipse.platform.debug-e495846db319468345a25e8cb5e96c807570ab1c.zip
Bug 299963 - [Breakpoints] Copy and Paste keybindings don't work in condition detail pane
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsDragAdapter.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsDragAdapter.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsDragAdapter.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsDragAdapter.java
index ae4273452..817e9a730 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsDragAdapter.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsDragAdapter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -12,6 +12,7 @@
package org.eclipse.debug.internal.ui.views.breakpoints;
import org.eclipse.core.runtime.Assert;
+import org.eclipse.jface.util.LocalSelectionTransfer;
import org.eclipse.jface.util.TransferDragSourceListener;
import org.eclipse.jface.viewers.AbstractTreeViewer;
import org.eclipse.jface.viewers.ISelection;
@@ -22,7 +23,6 @@ import org.eclipse.swt.dnd.DragSourceAdapter;
import org.eclipse.swt.dnd.DragSourceEvent;
import org.eclipse.swt.dnd.Transfer;
import org.eclipse.swt.widgets.Item;
-import org.eclipse.ui.views.navigator.LocalSelectionTransfer;
/**
* A drag adapter for the breakpoints viewer
@@ -56,7 +56,7 @@ public class BreakpointsDragAdapter extends DragSourceAdapter implements Transfe
* @see TransferDragSourceListener#getTransfer
*/
public Transfer getTransfer() {
- return LocalSelectionTransfer.getInstance();
+ return LocalSelectionTransfer.getTransfer();
}
/* non Java-doc
@@ -64,8 +64,8 @@ public class BreakpointsDragAdapter extends DragSourceAdapter implements Transfe
*/
public void dragStart(DragSourceEvent event) {
ISelection selection = fViewer.getSelection();
- LocalSelectionTransfer.getInstance().setSelection(selection);
- LocalSelectionTransfer.getInstance().setSelectionSetTime(event.time & 0xFFFFFFFFL);
+ LocalSelectionTransfer.getTransfer().setSelection(selection);
+ LocalSelectionTransfer.getTransfer().setSelectionSetTime(event.time & 0xFFFFFFFFL);
if (fViewer instanceof BreakpointsViewer) {
BreakpointsViewer viewer = (BreakpointsViewer)fViewer;
fItems = viewer.getSelectedItems();
@@ -87,7 +87,7 @@ public class BreakpointsDragAdapter extends DragSourceAdapter implements Transfe
// For consistency set the data to the selection even though
// the selection is provided by the LocalSelectionTransfer
// to the drop target adapter.
- event.data = LocalSelectionTransfer.getInstance().getSelection();
+ event.data = LocalSelectionTransfer.getTransfer().getSelection();
}
/* non Java-doc
@@ -104,7 +104,7 @@ public class BreakpointsDragAdapter extends DragSourceAdapter implements Transfe
}
}
fItems = null;
- LocalSelectionTransfer.getInstance().setSelection(null);
- LocalSelectionTransfer.getInstance().setSelectionSetTime(0);
+ LocalSelectionTransfer.getTransfer().setSelection(null);
+ LocalSelectionTransfer.getTransfer().setSelectionSetTime(0);
}
}

Back to the top