mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
[153652] allowing for drag and drop to project explorer.
This commit is contained in:
parent
788bc12703
commit
eb95878b72
2 changed files with 6 additions and 4 deletions
|
@ -87,7 +87,6 @@ import org.eclipse.rse.ui.view.ISystemViewElementAdapter;
|
|||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.custom.BusyIndicator;
|
||||
import org.eclipse.swt.dnd.DND;
|
||||
import org.eclipse.swt.dnd.FileTransfer;
|
||||
import org.eclipse.swt.dnd.TextTransfer;
|
||||
import org.eclipse.swt.dnd.Transfer;
|
||||
import org.eclipse.swt.events.KeyAdapter;
|
||||
|
@ -767,7 +766,9 @@ implements IMenuListener, ISystemDeleteTarget, ISystemRenameTarget, ISystemSelec
|
|||
protected void initDragAndDrop()
|
||||
{
|
||||
int ops = DND.DROP_COPY | DND.DROP_MOVE;
|
||||
Transfer[] transfers = new Transfer[] { PluginTransfer.getInstance(), TextTransfer.getInstance(), EditorInputTransfer.getInstance(), FileTransfer.getInstance()};
|
||||
Transfer[] transfers = new Transfer[] { PluginTransfer.getInstance(), TextTransfer.getInstance(), EditorInputTransfer.getInstance()
|
||||
/*, FileTransfer.getInstance()*/
|
||||
};
|
||||
|
||||
addDragSupport(ops, transfers, new SystemViewDataDragAdapter(this));
|
||||
addDropSupport(ops | DND.DROP_DEFAULT, transfers, new SystemViewDataDropAdapter(this));
|
||||
|
|
|
@ -90,7 +90,6 @@ import org.eclipse.rse.ui.messages.ISystemMessageLine;
|
|||
import org.eclipse.rse.ui.messages.SystemMessageDialog;
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.dnd.DND;
|
||||
import org.eclipse.swt.dnd.FileTransfer;
|
||||
import org.eclipse.swt.dnd.TextTransfer;
|
||||
import org.eclipse.swt.dnd.Transfer;
|
||||
import org.eclipse.swt.events.KeyAdapter;
|
||||
|
@ -810,7 +809,9 @@ public class SystemTableView
|
|||
protected void initDragAndDrop()
|
||||
{
|
||||
int ops = DND.DROP_COPY | DND.DROP_MOVE;
|
||||
Transfer[] transfers = new Transfer[] { PluginTransfer.getInstance(), TextTransfer.getInstance(), EditorInputTransfer.getInstance(), FileTransfer.getInstance()};
|
||||
Transfer[] transfers = new Transfer[] { PluginTransfer.getInstance(), TextTransfer.getInstance(), EditorInputTransfer.getInstance()
|
||||
/*, FileTransfer.getInstance()*/
|
||||
};
|
||||
|
||||
addDragSupport(ops, transfers, new SystemViewDataDragAdapter(this));
|
||||
addDropSupport(ops | DND.DROP_DEFAULT, transfers, new SystemViewDataDropAdapter(this));
|
||||
|
|
Loading…
Add table
Reference in a new issue