Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2003-09-18 20:59:59 +0000
committerJean Michel-Lemieux2003-09-18 20:59:59 +0000
commitf8065d61c796af9606ee0cf9baa22e2c8c56c237 (patch)
tree76e0b0909f0957e8afb001742f312de0cbd4abca
parent459e5ead962c19d983cadef185e506771599d0ff (diff)
downloadeclipse.platform.team-f8065d61c796af9606ee0cf9baa22e2c8c56c237.tar.gz
eclipse.platform.team-f8065d61c796af9606ee0cf9baa22e2c8c56c237.tar.xz
eclipse.platform.team-f8065d61c796af9606ee0cf9baa22e2c8c56c237.zip
Updated to use new IResource timestamp API.
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseFile.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseFile.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseFile.java
index bf57cf4b2..181437a03 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseFile.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseFile.java
@@ -83,12 +83,12 @@ public class EclipseFile extends EclipseResource implements ICVSFile {
* @see ICVSFile#getTimeStamp()
*/
public Date getTimeStamp() {
- File ioFile = getIOFile();
- if (ioFile == null) {
+ long timestamp = getIFile().getLocalTimeStamp();
+ if( timestamp == IResource.NULL_STAMP) {
// If there is no file, return the same timestamp as ioFile.lastModified() would
return new Date(0L);
}
- return new Date((ioFile.lastModified()/1000)*1000);
+ return new Date((timestamp/1000)*1000);
}
/*
@@ -101,13 +101,11 @@ public class EclipseFile extends EclipseResource implements ICVSFile {
} else {
time = date.getTime();
}
- getIOFile().setLastModified(time);
try {
- // Needed for workaround to Platform Core Bug #
- resource.refreshLocal(IResource.DEPTH_ZERO, null);
+ getIFile().setLocalTimeStamp(time);
} catch (CoreException e) {
throw CVSException.wrapException(e);
- }
+ }
}
/*

Back to the top