use of org.eclipse.swt.dnd.DragSource in project tdi-studio-se by Talend.
the class DragNDrop method createDragSource.
/**
*
* DOC amaumont Comment method "createDragSource".
*
* @param sourceListener
*/
private void createDragSource(DragSourceListener sourceListener) {
if (dragSource != null) {
dragSource.dispose();
}
dragSource = new DragSource(draggableTable, DND.DROP_DEFAULT | DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK);
dragSource.setTransfer(new Transfer[] { TableEntriesTransfer.getInstance() });
dragSource.addDragListener(sourceListener);
}
use of org.eclipse.swt.dnd.DragSource in project tdi-studio-se by Talend.
the class HL7Message2SchemaDragAndDropHandler method createDragSource.
private void createDragSource() {
if (dragSource != null) {
dragSource.dispose();
}
dragSource = new DragSource(linker.getTree(), DND.DROP_DEFAULT | DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK);
dragSource.setTransfer(new Transfer[] { SegmentTransfer.getInstance() });
DragSourceListener sourceListener = new TreeDragSourceListener();
dragSource.addDragListener(sourceListener);
}
use of org.eclipse.swt.dnd.DragSource in project tdi-studio-se by Talend.
the class JSONToSchemaDragAndDropHandler method createDragSource.
/**
*
* DOC amaumont Comment method "createDragSource".
*
* @param sourceListener
*/
private void createDragSource() {
if (dragSource != null) {
dragSource.dispose();
}
dragSource = new DragSource(tree, DND.DROP_DEFAULT | DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK);
dragSource.setTransfer(new Transfer[] { XPathTransfer.getInstance() });
DragSourceListener sourceListener = new TreeDragSourceListener();
dragSource.addDragListener(sourceListener);
}
use of org.eclipse.swt.dnd.DragSource in project tdi-studio-se by Talend.
the class JSONFileDragAndDropHandler method createDragSource.
private void createDragSource() {
if (dragSource != null) {
dragSource.dispose();
}
dragSource = new DragSource(linker.getSource(), DND.DROP_DEFAULT | DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK);
dragSource.setTransfer(new Transfer[] { LocalDataTransfer.getInstance() });
DragSourceListener sourceListener = new TreeDragSourceListener();
dragSource.addDragListener(sourceListener);
}
use of org.eclipse.swt.dnd.DragSource in project tdi-studio-se by Talend.
the class DragNDrop method createDragSource.
/**
*
* DOC amaumont Comment method "createDragSource".
*
* @param sourceListener
*/
private void createDragSource(DragSourceListener sourceListener) {
if (dragSource != null) {
dragSource.dispose();
}
dragSource = new DragSource(draggableControl, DND.DROP_DEFAULT | DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK);
dragSource.setTransfer(new Transfer[] { TableEntriesTransfer.getInstance() });
dragSource.addDragListener(sourceListener);
}
Aggregations