summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org
diff options
context:
space:
mode:
authorDuong Nguyen <dnguyen>2008-02-01 22:10:59 +0000
committerDuong Nguyen <dnguyen>2008-02-01 22:10:59 +0000
commitea9e9e9b15cb9bb6ee79b2bb765a1332130e536a (patch)
treeed27069e8c477cf820a5f821dfce10bd6c750cb7 /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org
parentb48f47315274da6406e90da95302589c7ab9c724 (diff)
downloadeclipse.platform.swt-ea9e9e9b15cb9bb6ee79b2bb765a1332130e536a.tar.gz
eclipse.platform.swt-ea9e9e9b15cb9bb6ee79b2bb765a1332130e536a.tar.xz
eclipse.platform.swt-ea9e9e9b15cb9bb6ee79b2bb765a1332130e536a.zip
Bug 150559 - [DND] No insertion feedback for dragging in a tree on Mac
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TreeDropTargetEffect.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TreeDropTargetEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TreeDropTargetEffect.java
index 400df25b27..cb1f7e55cb 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TreeDropTargetEffect.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TreeDropTargetEffect.java
@@ -54,7 +54,6 @@ public class TreeDropTargetEffect extends DropTargetEffect {
static final int EXPAND_HYSTERESIS = 1000; // milli seconds
int currentEffect = DND.FEEDBACK_NONE;
- TreeItem currentItem;
TreeItem insertItem = null;
boolean insertBefore = false;
@@ -242,12 +241,12 @@ public class TreeDropTargetEffect extends DropTargetEffect {
if ((effect & DND.FEEDBACK_INSERT_AFTER) != 0 ||
(effect & DND.FEEDBACK_INSERT_BEFORE) != 0) {
- if (currentItem != item ||
+ if (insertItem != item ||
((effect & DND.FEEDBACK_INSERT_AFTER) != (currentEffect & DND.FEEDBACK_INSERT_AFTER)) ||
((effect & DND.FEEDBACK_INSERT_BEFORE) != (currentEffect & DND.FEEDBACK_INSERT_BEFORE))) {
setInsertMark(tree, item, (effect & DND.FEEDBACK_INSERT_BEFORE) != 0);
currentEffect = effect;
- currentItem = item;
+ insertItem = item;
}
} else {
setInsertMark(tree, null, false);