Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Maetzel2003-10-21 09:53:52 +0000
committerKai Maetzel2003-10-21 09:53:52 +0000
commit67caf687ade384aaeda7e23b8765c5216238d3ef (patch)
tree01f39134951a5847f47d1f91aedff51db296ea36
parent8283fb32cbcb3113dcbdf05bdf544a2b96bbdccb (diff)
downloadeclipse.platform.text-67caf687ade384aaeda7e23b8765c5216238d3ef.tar.gz
eclipse.platform.text-67caf687ade384aaeda7e23b8765c5216238d3ef.tar.xz
eclipse.platform.text-67caf687ade384aaeda7e23b8765c5216238d3ef.zip
-rw-r--r--org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaFileBuffer.java4
-rw-r--r--org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java2
2 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaFileBuffer.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaFileBuffer.java
index 766bd2bdb..e7b6c506d 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaFileBuffer.java
+++ b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaFileBuffer.java
@@ -21,6 +21,8 @@ import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
+import org.eclipse.core.filebuffers.FileBuffers;
+
/**
* @since 3.0
*/
@@ -65,7 +67,7 @@ public abstract class JavaFileBuffer extends AbstractFileBuffer {
* @return the file at the given location
*/
private File getFileAtLocation(IPath location) {
- File file= location.toFile();
+ File file= FileBuffers.getSystemFileAtLocation(location);
return file.exists() ? file : null;
}
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java
index 2964a13a0..0024eff38 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java
+++ b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java
@@ -384,7 +384,7 @@ public abstract class ResourceFileBuffer extends AbstractFileBuffer {
* @see org.eclipse.core.filebuffers.IFileBuffer#getModifcationStamp()
*/
public long getModifcationStamp() {
- File file= fLocation.toFile();
+ File file= FileBuffers.getSystemFileAtLocation(getLocation());
if (file != null)
return file.lastModified();
return IResource.NULL_STAMP;

Back to the top