1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 07:05:24 +02:00

[189268] backing out the download on copy/drag changes

This commit is contained in:
David McKnight 2007-05-30 20:45:35 +00:00
parent f94acbec61
commit 525d45f5f9
3 changed files with 11 additions and 14 deletions

View file

@ -5485,7 +5485,6 @@ public class SystemView extends SafeTreeViewer
int ops = DND.DROP_COPY | DND.DROP_MOVE;
Transfer[] dragtransfers = new Transfer[]
{ PluginTransfer.getInstance(),
FileTransfer.getInstance(),
EditorInputTransfer.getInstance()
};

View file

@ -59,7 +59,7 @@ public class SystemCopyToClipboardAction extends SystemBaseAction implements IV
{
private IStructuredSelection _selection;
private Clipboard _clipboard;
private boolean _doResourceTransfer = true; //experiment
private boolean _doResourceTransfer = false; // determines whether or not to download on copy
/**
* Constructor
@ -93,19 +93,18 @@ public class SystemCopyToClipboardAction extends SystemBaseAction implements IV
if (remoteAdapter != null)
{
if (remoteAdapter.canEdit(dragObject))
{
ISystemEditableRemoteObject editable = remoteAdapter.getEditableRemoteObject(dragObject);
// corresponds to a file
IFile file = editable.getLocalResource();
if (!file.exists())
{
LazyDownloadJob job = new LazyDownloadJob(editable);
job.schedule();
{
ISystemEditableRemoteObject editable = remoteAdapter.getEditableRemoteObject(dragObject);
// corresponds to a file
IFile file = editable.getLocalResource();
if (!file.exists())
{
LazyDownloadJob job = new LazyDownloadJob(editable);
job.schedule();
}
resource = file;
}
resource = file;
}
else if (viewAdapter != null)
{
if (viewAdapter.hasChildren(dragObject))

View file

@ -824,7 +824,6 @@ public class SystemTableView
int ops = DND.DROP_COPY | DND.DROP_MOVE;
Transfer[] dragtransfers = new Transfer[]
{ PluginTransfer.getInstance(),
FileTransfer.getInstance(),
EditorInputTransfer.getInstance()
};