@Override public IResource getResource() { IPath fullPath= fFileState.getFullPath(); return ResourcesPlugin.getWorkspace().getRoot().findMember(fullPath); } }
public IResource getResource() { IPath fullPath= fFileState.getFullPath(); return ResourcesPlugin.getWorkspace().getRoot().findMember(fullPath); } }
private boolean statesEqual(IFileState s1, IFileState s2) { return (s1.getFullPath().equals(s2.getFullPath()) && s1 .getModificationTime() == s2.getModificationTime()); }
private boolean statesEqual(IFileState s1, IFileState s2) { return (s1.getFullPath().equals(s2.getFullPath()) && s1.getModificationTime() == s2.getModificationTime()); }
public URI getURI() { if (file != null) return file.getLocationURI(); return URIUtil.toURI(state.getFullPath()); }
@Override public URI getURI() { if (file != null) return file.getLocationURI(); return URIUtil.toURI(state.getFullPath()); }
@Override public InputStream getContents(IFileState target) throws CoreException { if (!target.exists()) { String message = Messages.history_notValid; throw new ResourceException(IResourceStatus.FAILED_READ_LOCAL, target.getFullPath(), message, null); } return blobStore.getBlob(((FileState) target).getUUID()); }
@Override public InputStream getContents(IFileState target) throws CoreException { if (!target.exists()) { String message = Messages.history_notValid; throw new ResourceException(IResourceStatus.FAILED_READ_LOCAL, target.getFullPath(), message, null); } return blobStore.getBlob(((FileState) target).getUUID()); }
@Override public InputStream getContents(IFileState target) throws CoreException { if (!target.exists()) { String message = Messages.history_notValid; throw new ResourceException(IResourceStatus.FAILED_READ_LOCAL, target.getFullPath(), message, null); } return blobStore.getBlob(((FileState) target).getUUID()); }