use of org.eclipse.swt.dnd.DropTargetListener in project tdi-studio-se by Talend.
the class SchemaXMLDragAndDropHandler method createDropTarget.
/**
*
* create DropTarget.
*/
private void createDropTarget() {
if (loopDropTarget != null) {
loopDropTarget.dispose();
}
loopDropTarget = new DropTarget(linker.getTarget(), DND.DROP_DEFAULT | DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK);
loopDropTarget.setTransfer(new Transfer[] { LocalDataTransfer.getInstance() });
DropTargetListener targetListener = new TableDropTargetListener();
loopDropTarget.addDropListener(targetListener);
}
use of org.eclipse.swt.dnd.DropTargetListener in project tdi-studio-se by Talend.
the class JSONToSchemaDragAndDropHandler method createDropTarget.
/**
*
* create DropTarget.
*/
private void createDropTarget() {
if (loopDropTarget != null) {
loopDropTarget.dispose();
}
loopDropTarget = new DropTarget(loopTable, DND.DROP_DEFAULT | DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK);
loopDropTarget.setTransfer(new Transfer[] { XPathTransfer.getInstance() });
DropTargetListener targetListener = new TableDropTargetListener();
loopDropTarget.addDropListener(targetListener);
if (fieldsDropTarget != null) {
fieldsDropTarget.dispose();
}
fieldsDropTarget = new DropTarget(fieldsTable, DND.DROP_DEFAULT | DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK);
fieldsDropTarget.setTransfer(new Transfer[] { XPathTransfer.getInstance() });
targetListener = new TableDropTargetListener();
fieldsDropTarget.addDropListener(targetListener);
}
use of org.eclipse.swt.dnd.DropTargetListener in project tdi-studio-se by Talend.
the class JSONTree2SchemaDragAndDropHandler method createDropTarget.
private void createDropTarget() {
if (loopDropTarget != null) {
loopDropTarget.dispose();
}
loopDropTarget = new DropTarget(table, DND.DROP_DEFAULT | DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK);
loopDropTarget.setTransfer(new Transfer[] { XPathTransfer.getInstance() });
DropTargetListener targetListener = new TableDropTargetListener();
loopDropTarget.addDropListener(targetListener);
}
Aggregations