Expand|Select|Wrap|Line Numbers
- List myList = new List (shell, SWT.BORDER | SWT.V_SCROLL);
- DragSource dragSource = new DragSource(myList, DND.DROP_COPY);
- Transfer[] transferDataTypes = new Transfer[] {TextTransfer.getInstance()};
- dragSource.setTransfer(transferDataTypes);
- myList.setDragDetect(true);
- JGoView myView = new JGoView(shell, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
- myView.setDropEnabled(true);
- myView.setDragDropEnabled(true);
- myView.initializeDragDropHandling();
- DropTarget dropTarget = new DropTarget(myView, DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_DEFAULT);
Expand|Select|Wrap|Line Numbers
- Exception in thread "main" org.eclipse.swt.SWTError: Cannot initialize Drop
- at org.eclipse.swt.dnd.DND.error(Unknown Source)
- at org.eclipse.swt.dnd.DND.error(Unknown Source)