Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 358392
Collapse All | Expand All

(-)a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/history/IFileRevision.java (-2 / +2 lines)
Lines 35-41 public interface IFileRevision { Link Here
35
	 * the returned <code>IFile</code>.
35
	 * the returned <code>IFile</code>.
36
	 * @param monitor a progress monitor
36
	 * @param monitor a progress monitor
37
	 * @return IStorage containing file storage 
37
	 * @return IStorage containing file storage 
38
	 * @throws CoreException 
38
	 * @throws CoreException if an error occurs
39
	 */
39
	 */
40
	public IStorage getStorage(IProgressMonitor monitor) throws CoreException;
40
	public IStorage getStorage(IProgressMonitor monitor) throws CoreException;
41
41
Lines 126-132 public interface IFileRevision { Link Here
126
	 * Returns an {@link IFileRevision} with all supported properties present.
126
	 * Returns an {@link IFileRevision} with all supported properties present.
127
	 * @param monitor a monitor
127
	 * @param monitor a monitor
128
	 * @return a complete version of this file revision or null
128
	 * @return a complete version of this file revision or null
129
	 * @throws CoreException
129
	 * @throws CoreException if an error occurs
130
	 */
130
	 */
131
	public IFileRevision withAllProperties(IProgressMonitor monitor) throws CoreException;
131
	public IFileRevision withAllProperties(IProgressMonitor monitor) throws CoreException;
132
}
132
}
(-)a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/LocalResourceTypedElement.java (-6 / +6 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
2
 * Copyright (c) 2000, 2011 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 367-373 public class LocalResourceTypedElement extends ResourceNode implements IAdaptabl Link Here
367
	 * @since 3.7
367
	 * @since 3.7
368
	 */
368
	 */
369
	public void fetchAuthor(IProgressMonitor monitor) throws CoreException {
369
	public void fetchAuthor(IProgressMonitor monitor) throws CoreException {
370
		author= null;
370
		author = null;
371
371
372
		IFileHistoryProvider fileHistoryProvider= Utils.getHistoryProvider(getResource());
372
		IFileHistoryProvider fileHistoryProvider= Utils.getHistoryProvider(getResource());
373
		if (fileHistoryProvider == null)
373
		if (fileHistoryProvider == null)
Lines 377-386 public class LocalResourceTypedElement extends ResourceNode implements IAdaptabl Link Here
377
		if (revision == null)
377
		if (revision == null)
378
			return;
378
			return;
379
379
380
		// NOTE: Must not check for revision#isPropertyMissing() as this will always return true for the workspace file revision
380
		if (revision.isPropertyMissing()) {
381
		revision= revision.withAllProperties(monitor);
381
			IFileRevision other = revision.withAllProperties(monitor);
382
382
			author = other.getAuthor();
383
		author= revision.getAuthor();
383
		}
384
	}
384
	}
385
385
386
	/**
386
	/**

Return to bug 358392