Community
Participate
Working Groups
* the returned <code>IFile</code>.
* @param monitor a progress monitor
* @return IStorage containing file storage
* @throws CoreException
* @throws CoreException if an error occurs
*/
public IStorage getStorage(IProgressMonitor monitor) throws CoreException;
* Returns an {@link IFileRevision} with all supported properties present.
* @param monitor a monitor
* @return a complete version of this file revision or null
public IFileRevision withAllProperties(IProgressMonitor monitor) throws CoreException;
}
/*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* Copyright (c) 2000, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* @since 3.7
public void fetchAuthor(IProgressMonitor monitor) throws CoreException {
author= null;
author = null;
IFileHistoryProvider fileHistoryProvider= Utils.getHistoryProvider(getResource());
if (fileHistoryProvider == null)
if (revision == null)
return;
// NOTE: Must not check for revision#isPropertyMissing() as this will always return true for the workspace file revision
if (revision.isPropertyMissing()) {
revision= revision.withAllProperties(monitor);
IFileRevision other = revision.withAllProperties(monitor);
author = other.getAuthor();
author= revision.getAuthor();
/**