Lines 51-56
Link Here
|
51 |
* David McKnight (IBM) - [390609] Cached file opened twice in case of eclipse linked resource.. |
51 |
* David McKnight (IBM) - [390609] Cached file opened twice in case of eclipse linked resource.. |
52 |
* Xuan Chen (IBM) - [399101] RSE edit actions on local files that map to actually workspace resources should not use temp files |
52 |
* Xuan Chen (IBM) - [399101] RSE edit actions on local files that map to actually workspace resources should not use temp files |
53 |
* Xuan Chen (IBM) - [399752] Cannot download remote file due to scoping rule |
53 |
* Xuan Chen (IBM) - [399752] Cannot download remote file due to scoping rule |
|
|
54 |
* David McKnight (IBM) - [412571] Truncate file when compare file in workspace by Remote System Explorer |
54 |
*******************************************************************************/ |
55 |
*******************************************************************************/ |
55 |
|
56 |
|
56 |
package org.eclipse.rse.files.ui.resources; |
57 |
package org.eclipse.rse.files.ui.resources; |
Lines 61-66
Link Here
|
61 |
|
62 |
|
62 |
import org.eclipse.core.resources.IContainer; |
63 |
import org.eclipse.core.resources.IContainer; |
63 |
import org.eclipse.core.resources.IFile; |
64 |
import org.eclipse.core.resources.IFile; |
|
|
65 |
import org.eclipse.core.resources.IProject; |
64 |
import org.eclipse.core.resources.IResource; |
66 |
import org.eclipse.core.resources.IResource; |
65 |
import org.eclipse.core.resources.IResourceChangeEvent; |
67 |
import org.eclipse.core.resources.IResourceChangeEvent; |
66 |
import org.eclipse.core.resources.IResourceChangeListener; |
68 |
import org.eclipse.core.resources.IResourceChangeListener; |
Lines 579-588
Link Here
|
579 |
*/ |
581 |
*/ |
580 |
public boolean download(IProgressMonitor monitor) throws Exception |
582 |
public boolean download(IProgressMonitor monitor) throws Exception |
581 |
{ |
583 |
{ |
582 |
|
|
|
583 |
// DY: check if the file exists and is read-only (because it was previously opened |
584 |
// DY: check if the file exists and is read-only (because it was previously opened |
584 |
// in the system editor) |
585 |
// in the system editor) |
585 |
IFile file = getLocalResource(); |
586 |
IFile file = getLocalResource(); |
|
|
587 |
IProject rseTempFilesProject = SystemRemoteEditManager.getInstance().getRemoteEditProject(); |
588 |
|
589 |
// Don't download files that are not in temp files project. |
590 |
// With bug 399101, local RSE files that map to workspace project files |
591 |
// no longer get downloaded to the temp files project. |
592 |
if (file.exists() && !file.getProject().equals(rseTempFilesProject)){ |
593 |
return true; |
594 |
} |
595 |
|
586 |
SystemIFileProperties properties = new SystemIFileProperties(file); |
596 |
SystemIFileProperties properties = new SystemIFileProperties(file); |
587 |
boolean newFile = !file.exists(); |
597 |
boolean newFile = !file.exists(); |
588 |
if (file.isReadOnly()) |
598 |
if (file.isReadOnly()) |