summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java
diff options
context:
space:
mode:
authorDuong Nguyen <dnguyen>2008-01-31 00:16:52 +0000
committerDuong Nguyen <dnguyen>2008-01-31 00:16:52 +0000
commitc3e877f8f7f86d0622d844511bee89e75388f2a5 (patch)
tree3e029c9db010abdb846e307733a4e6fce004d2ee /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java
parentd3ab70598558239dfbba5286fff86a903ec7ab74 (diff)
downloadeclipse.platform.swt-c3e877f8f7f86d0622d844511bee89e75388f2a5.tar.gz
eclipse.platform.swt-c3e877f8f7f86d0622d844511bee89e75388f2a5.tar.xz
eclipse.platform.swt-c3e877f8f7f86d0622d844511bee89e75388f2a5.zip
Bug 215388 - Add API to make the DropTarget more open
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java
index 4716041598..dfbd6e03c2 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java
@@ -113,7 +113,6 @@ public class DragSource extends Widget {
int dataEffect = DND.DROP_NONE;
static final String DEFAULT_DRAG_SOURCE_EFFECT = "DEFAULT_DRAG_SOURCE_EFFECT"; //$NON-NLS-1$
- static final String DRAGSOURCEID = "DragSource"; //$NON-NLS-1$
static final int CFSTR_PERFORMEDDROPEFFECT = Transfer.registerType("Performed DropEffect"); //$NON-NLS-1$
static final TCHAR WindowClass = new TCHAR (0, "#32770", true);
@@ -149,10 +148,10 @@ public class DragSource extends Widget {
public DragSource(Control control, int style) {
super(control, checkStyle(style));
this.control = control;
- if (control.getData(DRAGSOURCEID) != null) {
+ if (control.getData(DND.DRAG_SOURCE_KEY) != null) {
DND.error(DND.ERROR_CANNOT_INIT_DRAG);
}
- control.setData(DRAGSOURCEID, this);
+ control.setData(DND.DRAG_SOURCE_KEY, this);
createCOMInterfaces();
this.AddRef();
@@ -530,7 +529,7 @@ private void onDispose() {
control.removeListener(SWT.DragDetect, controlListener);
}
controlListener = null;
- control.setData(DRAGSOURCEID, null);
+ control.setData(DND.DRAG_SOURCE_KEY, null);
control = null;
transferAgents = null;
}