Home
last modified time | relevance | path

Searched refs:DND (Results 1 – 25 of 1384) sorted by relevance

12345678910>>...56

/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/
H A DDropTarget.java138 DND.error(DND.ERROR_CANNOT_INIT_DROP); in DropTarget()
145 DND.error(DND.ERROR_CANNOT_INIT_DROP); in DropTarget()
147 DND.error(DND.ERROR_CANNOT_INIT_DROP); in DropTarget()
307 event.detail = (allowedOperations & DND.DROP_MOVE) != 0 ? DND.DROP_MOVE : DND.DROP_NONE; in DragEnter()
368 event.type = DND.DragOver; in DragOver()
378 event.detail = (allowedOperations & DND.DROP_MOVE) != 0 ? DND.DROP_MOVE : DND.DROP_NONE; in DragOver()
554 return DND.DROP_LINK; in getOperationFromKeyState()
559 return DND.DROP_DEFAULT; in getOperationFromKeyState()
613 operation |= DND.DROP_COPY; in osToOp()
616 operation |= DND.DROP_LINK; in osToOp()
[all …]
H A DDragSource.java122 int dataEffect = DND.DROP_NONE;
161 DND.error(DND.ERROR_CANNOT_INIT_DRAG); in DragSource()
307 notifyListeners(DND.DragStart,event); in drag()
389 if (dataEffect == DND.DROP_MOVE) { in drag()
390 …operation = (operation == DND.DROP_NONE || operation == DND.DROP_COPY) ? DND.DROP_TARGET_MOVE : DN… in drag()
392 if (dataEffect != DND.DROP_NONE) { in drag()
429 notifyListeners(DND.DragEnd,event); in drag()
430 dataEffect = DND.DROP_NONE; in drag()
638 operation |= DND.DROP_COPY; in osToOp()
641 operation |= DND.DROP_LINK; in osToOp()
[all …]
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.swt/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/
H A DSnippet84.java37 DragSource source = new DragSource(label, DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK); in main()
49 case DND.DROP_MOVE: in main()
51 case DND.DROP_COPY: in main()
53 case DND.DROP_LINK: in main()
55 case DND.DROP_NONE: in main()
69 …DropTarget target = new DropTarget(text, DND.DROP_DEFAULT | DND.DROP_COPY | DND.DROP_MOVE | DND.DR… in main()
74 if (event.detail == DND.DROP_DEFAULT) event.detail = DND.DROP_COPY; in main()
78 if (event.detail == DND.DROP_DEFAULT) event.detail = DND.DROP_COPY; in main()
84 case DND.DROP_MOVE: in main()
86 case DND.DROP_COPY: in main()
[all …]
H A DSnippet257.java51 final DragSource source = new DragSource(text, DND.DROP_COPY | DND.DROP_MOVE); in main()
73 if (event.detail == DND.DROP_MOVE) { in main()
86 …DropTarget target = new DropTarget(text, DND.DROP_DEFAULT | DND.DROP_MOVE | DND.DROP_COPY | DND.DR… in main()
91 if (event.detail == DND.DROP_DEFAULT) { in main()
93 event.detail = DND.DROP_COPY; in main()
95 event.detail = DND.DROP_MOVE; in main()
100 if (event.detail == DND.DROP_DEFAULT) { in main()
102 event.detail = DND.DROP_COPY; in main()
104 event.detail = DND.DROP_MOVE; in main()
109 event.feedback = DND.FEEDBACK_SCROLL | DND.FEEDBACK_SELECT; in main()
[all …]
H A DSnippet284.java48 int operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK; in setDragSource()
66 int operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK; in setDropTarget()
72 if (e.detail == DND.DROP_NONE) in setDropTarget()
73 e.detail = DND.DROP_LINK; in setDropTarget()
77 if (e.detail == DND.DROP_NONE) in setDropTarget()
78 e.detail = DND.DROP_LINK; in setDropTarget()
83 event.detail = DND.DROP_NONE; in setDropTarget()
H A DSnippet83.java44 …DropTarget target = new DropTarget(control, DND.DROP_DEFAULT | DND.DROP_COPY | DND.DROP_LINK | DND in main()
50 if ((event.operations & DND.DROP_COPY) != 0) ops += "Copy;"; in main()
51 if ((event.operations & DND.DROP_MOVE) != 0) ops += "Move;"; in main()
52 if ((event.operations & DND.DROP_LINK) != 0) ops += "Link;"; in main()
57 if (event.detail == DND.DROP_DEFAULT) { in main()
58 if ((event.operations & DND.DROP_COPY) != 0) { in main()
59 event.detail = DND.DROP_COPY; in main()
60 } else if ((event.operations & DND.DROP_LINK) != 0) { in main()
61 event.detail = DND.DROP_LINK; in main()
62 } else if ((event.operations & DND.DROP_MOVE) != 0) { in main()
[all …]
H A DSnippet210.java53 DragSource source = new DragSource(text1, DND.DROP_COPY | DND.DROP_MOVE); in main()
68 if (e.detail == DND.DROP_MOVE) { in main()
77 …DropTarget target = new DropTarget(text2, DND.DROP_DEFAULT | DND.DROP_MOVE | DND.DROP_COPY | DND.D… in main()
82 if (e.detail == DND.DROP_DEFAULT) in main()
83 e.detail = DND.DROP_COPY; in main()
87 if (e.detail == DND.DROP_DEFAULT) in main()
88 e.detail = DND.DROP_COPY; in main()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/
H A DDropTarget.java154 DND.error(DND.ERROR_CANNOT_INIT_DROP); in DropTarget()
157 DND.error(DND.ERROR_CANNOT_INIT_DROP); in DropTarget()
468 event.detail = (allowedOperations & DND.DROP_MOVE) != 0 ? DND.DROP_MOVE : DND.DROP_NONE; in drag_motion()
483 case DND.DROP_NONE: in drag_motion()
486 case DND.DROP_COPY: in drag_motion()
489 case DND.DROP_MOVE: in drag_motion()
492 case DND.DROP_LINK: in drag_motion()
611 if ((operation & DND.DROP_COPY) == DND.DROP_COPY) in opToOsOp()
613 if ((operation & DND.DROP_MOVE) == DND.DROP_MOVE) in opToOsOp()
615 if ((operation & DND.DROP_LINK) == DND.DROP_LINK) in opToOsOp()
[all …]
H A DDragSource.java165 DND.error(DND.ERROR_CANNOT_INIT_DRAG); in DragSource()
168 DND.error(DND.ERROR_CANNOT_INIT_DRAG); in DragSource()
365 int operation = DND.DROP_NONE; in dragEnd()
381 operation = DND.DROP_MOVE; in dragEnd()
384 if (operation == DND.DROP_MOVE) operation = DND.DROP_NONE; in dragEnd()
548 if ((operation & DND.DROP_COPY) == DND.DROP_COPY) in opToOsOp()
550 if ((operation & DND.DROP_MOVE) == DND.DROP_MOVE) in opToOsOp()
552 if ((operation & DND.DROP_LINK) == DND.DROP_LINK) in opToOsOp()
562 operation |= DND.DROP_COPY; in osOpToOp()
564 operation |= DND.DROP_MOVE; in osOpToOp()
[all …]
H A DClipboard.java74 DND.error(SWT.ERROR_THREAD_INVALID_ACCESS); in Clipboard()
110 DND.error (SWT.ERROR_INVALID_SUBCLASS); in checkSubclass()
157 clearContents(DND.CLIPBOARD); in clearContents()
243 return getContents(transfer, DND.CLIPBOARD); in getContents()
295 if ((clipboards & DND.CLIPBOARD) != 0) { in getContents()
458 DND.error(SWT.ERROR_INVALID_ARGUMENT); in setContents()
462 DND.error(SWT.ERROR_INVALID_ARGUMENT); in setContents()
467 DND.error(DND.ERROR_CANNOT_SET_CLIPBOARD); in setContents()
487 return getAvailableTypes(DND.CLIPBOARD); in getAvailableTypes()
516 if ((clipboards & DND.CLIPBOARD) != 0) { in getAvailableTypes()
[all …]
/dports/x11-toolkits/swt/swt-4.20/org/eclipse/swt/dnd/
H A DDropTarget.java166 DND.error(DND.ERROR_CANNOT_INIT_DROP); in DropTarget()
169 DND.error(DND.ERROR_CANNOT_INIT_DROP); in DropTarget()
481 event.detail = (allowedOperations & DND.DROP_MOVE) != 0 ? DND.DROP_MOVE : DND.DROP_NONE; in drag_motion()
496 case DND.DROP_NONE: in drag_motion()
499 case DND.DROP_COPY: in drag_motion()
502 case DND.DROP_MOVE: in drag_motion()
505 case DND.DROP_LINK: in drag_motion()
624 if ((operation & DND.DROP_COPY) == DND.DROP_COPY) in opToOsOp()
626 if ((operation & DND.DROP_MOVE) == DND.DROP_MOVE) in opToOsOp()
628 if ((operation & DND.DROP_LINK) == DND.DROP_LINK) in opToOsOp()
[all …]
H A DDragSource.java179 DND.error(DND.ERROR_CANNOT_INIT_DRAG); in DragSource()
182 DND.error(DND.ERROR_CANNOT_INIT_DRAG); in DragSource()
198 DND.error(DND.ERROR_CANNOT_INIT_DRAG); in DragSource()
201 DND.error(DND.ERROR_CANNOT_INIT_DRAG); in DragSource()
476 if (operation == DND.DROP_MOVE) operation = DND.DROP_NONE; in dragEnd()
639 if ((operation & DND.DROP_COPY) == DND.DROP_COPY) in opToOsOp()
641 if ((operation & DND.DROP_MOVE) == DND.DROP_MOVE) in opToOsOp()
643 if ((operation & DND.DROP_LINK) == DND.DROP_LINK) in opToOsOp()
653 operation |= DND.DROP_COPY; in osOpToOp()
655 operation |= DND.DROP_MOVE; in osOpToOp()
[all …]
H A DClipboard.java75 DND.error(SWT.ERROR_THREAD_INVALID_ACCESS); in Clipboard()
111 DND.error (SWT.ERROR_INVALID_SUBCLASS); in checkSubclass()
158 clearContents(DND.CLIPBOARD); in clearContents()
244 return getContents(transfer, DND.CLIPBOARD); in getContents()
296 if ((clipboards & DND.CLIPBOARD) != 0) { in getContents()
445 DND.error(SWT.ERROR_INVALID_ARGUMENT); in setContents()
449 DND.error(SWT.ERROR_INVALID_ARGUMENT); in setContents()
454 DND.error(DND.ERROR_CANNOT_SET_CLIPBOARD); in setContents()
474 return getAvailableTypes(DND.CLIPBOARD); in getAvailableTypes()
503 if ((clipboards & DND.CLIPBOARD) != 0) { in getAvailableTypes()
[all …]
H A DDND.java25 public class DND { class
273 case DND.ERROR_CANNOT_INIT_DRAG:{ in error()
274 String msg = DND.INIT_DRAG_MESSAGE; in error()
278 case DND.ERROR_CANNOT_INIT_DROP:{ in error()
279 String msg = DND.INIT_DROP_MESSAGE; in error()
283 case DND.ERROR_CANNOT_SET_CLIPBOARD:{ in error()
284 String msg = DND.CANNOT_SET_CLIPBOARD_MESSAGE; in error()
288 case DND.ERROR_INVALID_DATA:{ in error()
289 String msg = DND.INVALID_DATA_MESSAGE; in error()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/
H A DDropTarget.java127 DND.error(DND.ERROR_CANNOT_INIT_DROP); in addDragHandlers()
246 event.detail = (allowedOperations & DND.DROP_MOVE) != 0 ? DND.DROP_MOVE : DND.DROP_NONE; in draggingEntered()
286 event.detail = DND.DROP_NONE; in draggingExited()
310 event.type = DND.DragOver; in draggingUpdated()
322 event.detail = (allowedOperations & DND.DROP_MOVE) != 0 ? DND.DROP_MOVE : DND.DROP_NONE; in draggingUpdated()
391 DND.error(DND.ERROR_CANNOT_INIT_DROP); in DropTarget()
555 return DND.DROP_DEFAULT; in getOperationFromKeyState()
601 operation |= DND.DROP_COPY; in osOpToOp()
604 operation |= DND.DROP_LINK; in osOpToOp()
613 operation = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK; in osOpToOp()
[all …]
H A DDragSource.java202 DND.error(DND.ERROR_CANNOT_INIT_DRAG); in DragSource()
249 DND.error(DND.ERROR_CANNOT_INIT_DRAG); in DragSource()
424 swtOperation &= ~DND.DROP_MOVE; in draggedImage_endedAt_operation()
439 notifyListeners(DND.DragEnd, event); in draggedImage_endedAt_operation()
684 if ((operation & DND.DROP_COPY) != 0){ in opToOsOp()
702 operation |= DND.DROP_COPY; in osOpToOp()
705 operation |= DND.DROP_LINK; in osOpToOp()
708 operation |= DND.DROP_TARGET_MOVE; in osOpToOp()
711 operation |= DND.DROP_MOVE; in osOpToOp()
714 operation = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK; in osOpToOp()
[all …]
H A DClipboard.java60 DND.error(SWT.ERROR_THREAD_INVALID_ACCESS); in Clipboard()
96 DND.error (SWT.ERROR_INVALID_SUBCLASS); in checkSubclass()
143 clearContents(DND.CLIPBOARD); in clearContents()
174 if ((clipboards & DND.CLIPBOARD) == 0) return; in clearContents()
230 return getContents(transfer, DND.CLIPBOARD); in getContents()
376 setContents(data, dataTypes, DND.CLIPBOARD); in setContents()
441 DND.error(SWT.ERROR_INVALID_ARGUMENT); in setContents()
445 DND.error(SWT.ERROR_INVALID_ARGUMENT); in setContents()
448 if ((clipboards & DND.CLIPBOARD) == 0) return; in setContents()
451 DND.error(DND.ERROR_CANNOT_SET_CLIPBOARD); in setContents()
[all …]
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.swt/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/
H A DBug307441_DnDOverlappingControls.java24 import org.eclipse.swt.dnd.DND;
91 int operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK; in setDragSource()
109 int operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK; in setDropTargetForLabel()
116 if (e.detail == DND.DROP_NONE) in setDropTargetForLabel()
117 e.detail = DND.DROP_LINK; in setDropTargetForLabel()
121 if (e.detail == DND.DROP_NONE) in setDropTargetForLabel()
122 e.detail = DND.DROP_LINK; in setDropTargetForLabel()
127 event.detail = DND.DROP_NONE; in setDropTargetForLabel()
152 int operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK; in setDropTarget()
161 e.detail = DND.DROP_LINK; in setDropTarget()
[all …]
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/
H A DWorkingSetDropAdapter.java99 …termineOperation(target, operation, transferType, DND.DROP_MOVE | DND.DROP_LINK | DND.DROP_COPY) !… in validateDrop()
105 case DND.DROP_DEFAULT: in determineOperation()
106 case DND.DROP_COPY: in determineOperation()
107 case DND.DROP_MOVE: in determineOperation()
110 return DND.DROP_NONE; in determineOperation()
120 return DND.DROP_NONE; in validateTarget()
123 return DND.DROP_NONE; in validateTarget()
133 return DND.DROP_MOVE; in validateTarget()
135 return DND.DROP_NONE; in validateTarget()
138 return DND.DROP_NONE; in validateTarget()
[all …]
H A DSelectionTransferDropAdapter.java113 …termineOperation(target, operation, transferType, DND.DROP_MOVE | DND.DROP_LINK | DND.DROP_COPY) !… in validateDrop()
134 return DND.DROP_NONE; in internalDetermineOperation()
151 case DND.DROP_COPY: in internalDetermineOperation()
153 case DND.DROP_MOVE: in internalDetermineOperation()
160 return DND.DROP_NONE; in internalDetermineOperation()
204 case DND.DROP_MOVE: in performDrop()
206 case DND.DROP_COPY: in performDrop()
241 return DND.DROP_NONE; in handleValidateMove()
244 return DND.DROP_NONE; in handleValidateMove()
250 return DND.DROP_MOVE; in handleValidateMove()
[all …]
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/
H A DDND.java25 public class DND { class
273 case DND.ERROR_CANNOT_INIT_DRAG:{ in error()
274 String msg = DND.INIT_DRAG_MESSAGE; in error()
278 case DND.ERROR_CANNOT_INIT_DROP:{ in error()
279 String msg = DND.INIT_DROP_MESSAGE; in error()
283 case DND.ERROR_CANNOT_SET_CLIPBOARD:{ in error()
284 String msg = DND.CANNOT_SET_CLIPBOARD_MESSAGE; in error()
288 case DND.ERROR_INVALID_DATA:{ in error()
289 String msg = DND.INVALID_DATA_MESSAGE; in error()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.ui/bundles/org.eclipse.ui.browser/src/org/eclipse/ui/internal/browser/
H A DWebBrowserViewDropAdapter.java18 import org.eclipse.swt.dnd.DND;
35 private int currentOperation = DND.DROP_NONE;
40 private int lastValidOperation = DND.DROP_NONE;
54 if (event.detail != DND.DROP_NONE) in doDropValidation()
61 currentOperation = DND.DROP_NONE; in doDropValidation()
85 event.feedback = DND.FEEDBACK_SELECT; in dragOver()
99 event.detail = DND.DROP_NONE; in drop()
111 event.detail = DND.DROP_NONE; in dropAccept()
116 if (event.detail == DND.DROP_DEFAULT) in dragEnter()
117 event.detail = DND.DROP_COPY; in dragEnter()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.pde.ui/ua/org.eclipse.pde.ua.ui/src/org/eclipse/pde/internal/ua/ui/editor/toc/
H A DTocDropAdapter.java24 import org.eclipse.swt.dnd.DND;
107 event.feedback = DND.FEEDBACK_INSERT_BEFORE; in dragOver()
111 event.feedback = DND.FEEDBACK_INSERT_AFTER; in dragOver()
115 event.feedback = DND.FEEDBACK_SELECT; in dragOver()
119 event.feedback |= DND.FEEDBACK_EXPAND | DND.FEEDBACK_SCROLL; in dragOver()
149 event.detail &= DND.DROP_COPY; in setDNDMode()
154 event.detail = DND.DROP_NONE; in setDNDMode()
175 event.detail = DND.DROP_NONE; in validateFileDrop()
181 { event.detail = DND.DROP_NONE; in validateFileDrop()
187 { event.detail = DND.DROP_NONE; in validateFileDrop()
[all …]
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/
H A DJavaDropAdapterAssistant.java75 case DND.DROP_MOVE : in handleDrop()
79 case DND.DROP_COPY : in handleDrop()
126 case DND.DROP_COPY : in validateDrop()
228 return DND.DROP_NONE; in handleValidateCopy()
231 return DND.DROP_NONE; in handleValidateCopy()
234 return DND.DROP_NONE; in handleValidateCopy()
236 return DND.DROP_COPY; in handleValidateCopy()
241 return DND.DROP_NONE; in handleValidateDefault()
248 return DND.DROP_NONE; in handleValidateMove()
254 return DND.DROP_NONE; in handleValidateMove()
[all …]
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.ui/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/
H A DViewerDropAdapter.java17 import org.eclipse.swt.dnd.DND;
81 private int currentOperation = DND.DROP_NONE;
156 this.lastValidOperation = DND.DROP_NONE; in clearState()
223 currentOperation = DND.DROP_NONE; in doDropValidation()
274 event.detail = DND.DROP_NONE; in drop()
278 currentOperation = DND.DROP_NONE; in drop()
410 event.detail = DND.DROP_NONE; in handleException()
458 event.feedback = DND.FEEDBACK_SELECT; in setFeedback()
465 event.feedback &= ~DND.FEEDBACK_SELECT; in setFeedback()
469 event.feedback |= DND.FEEDBACK_EXPAND; in setFeedback()
[all …]

12345678910>>...56