private IFileState getMatchingFileState(IFileState[] states) { for (int i = 0; i < states.length; i++) { if (localTimeStamp == states[i].getModificationTime()) { return states[i]; } } return states[0]; }
@Override public long getModificationDate() { return fFileState.getModificationTime(); } }
private IFileState getMatchingFileState(IFileState[] states) { for (int i = 0; i < states.length; i++) { if (localTimeStamp == states[i].getModificationTime()) { return states[i]; } } return states[0]; }
@Override public long getModificationTime() { return ((IFileState) storage).getModificationTime(); } };
public long getModificationDate() { return fFileState.getModificationTime(); }
/** * Get the file state that matches this file description. The local time * stamp is used to try to find a matching file state. If none can be found, * the most recent copy of the file state is used. * @param states file states * @return best guess state */ private IFileState getMatchingFileState(IFileState[] states) { for (int i= 0; i < states.length; i++) { if (localTimeStamp == states[i].getModificationTime()) { return states[i]; } } return states[0]; }
@Override public long getModificationDate() { return fFileState.getModificationTime(); }
public long getModificationDate() { return fFileState.getModificationTime(); } }
public long getModificationTime() { return ((IFileState) storage).getModificationTime(); } };
@Override public int hashCode() { if (file != null) return file.hashCode(); if (state != null) return (int)state.getModificationTime(); return super.hashCode(); } }
public int hashCode() { if (file != null) return file.hashCode(); if (state != null) return (int) state.getModificationTime(); return super.hashCode(); } }
@Override public long getTimestamp() { if (file != null) { return file.getLocalTimeStamp(); } return state.getModificationTime(); }
public long getTimestamp() { if (file != null) { return file.getLocalTimeStamp(); } return state.getModificationTime(); }
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()); }
protected long getModificationDate(Object element) { IModificationDate md = Adapters.adapt(element, IModificationDate.class); if (md != null) return md.getModificationDate(); if (element instanceof IFileState) { IFileState fs = (IFileState) element; return fs.getModificationTime(); } if (element instanceof IFile) { IFile f = (IFile) element; return f.getLocalTimeStamp(); } return -1; }
protected long getModificationDate(Object element) { IModificationDate md = (IModificationDate)Utils.getAdapter(element, IModificationDate.class); if (md != null) return md.getModificationDate(); if (element instanceof IFileState) { IFileState fs = (IFileState) element; return fs.getModificationTime(); } if (element instanceof IFile) { IFile f = (IFile) element; return f.getLocalTimeStamp(); } return -1; }
public String getName() { IFileRevision rev = (IFileRevision) getAdapter(IFileRevision.class); if (rev != null) return NLS.bind( UIText.FileRevisionEditorInput_NameAndRevisionTitle, new String[] { rev.getName(), rev.getContentIdentifier() }); IFileState state = (IFileState) getAdapter(IFileState.class); if (state != null) return state.getName() + " " + DateFormat.getInstance().format(new Date(state.getModificationTime())); //$NON-NLS-1$ return storage.getName(); }
public String getName() { IFileRevision rev = (IFileRevision)getAdapter(IFileRevision.class); if (rev != null) return NLS.bind(TeamUIMessages.nameAndRevision, new String[] { rev.getName(), rev.getContentIdentifier()}); IFileState state = (IFileState)getAdapter(IFileState.class); if (state != null) return state.getName() + " " + DateFormat.getInstance().format(new Date(state.getModificationTime())) ; //$NON-NLS-1$ return storage.getName(); }
@Override public String getName() { IFileRevision rev = getAdapter(IFileRevision.class); if (rev != null) return NLS.bind(TeamUIMessages.nameAndRevision, new String[] { rev.getName(), rev.getContentIdentifier()}); IFileState state = getAdapter(IFileState.class); if (state != null) return state.getName() + " " + DateFormat.getInstance().format(new Date(state.getModificationTime())) ; //$NON-NLS-1$ return storage.getName(); }