From 5cfd2b65bf161109b117a403abeaf7158513359a Mon Sep 17 00:00:00 2001 From: Jean Michel-Lemieux Date: Thu, 26 Feb 2004 22:05:12 +0000 Subject: Removed use of busycursorwhile because it is buggy. --- .../ui/synchronize/viewers/SynchronizeCompareInput.java | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/viewers/SynchronizeCompareInput.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/viewers/SynchronizeCompareInput.java index 2a3edd30e..78af46d31 100644 --- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/viewers/SynchronizeCompareInput.java +++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/viewers/SynchronizeCompareInput.java @@ -16,6 +16,7 @@ import org.eclipse.compare.*; import org.eclipse.compare.internal.INavigatable; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.jface.action.Separator; import org.eclipse.jface.action.ToolBarManager; import org.eclipse.jface.operation.IRunnableWithProgress; @@ -128,18 +129,8 @@ public class SynchronizeCompareInput extends CompareEditorInput { // when calling getContents on a diff node. IProgressService manager = PlatformUI.getWorkbench().getProgressService(); try { - manager.busyCursorWhile(new IRunnableWithProgress() { - public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { - try { - node.cacheContents(monitor); - } catch (TeamException e) { - throw new InvocationTargetException(e); - } - } - }); - } catch (InvocationTargetException e) { - Utils.handle(e); - } catch (InterruptedException e) { + node.cacheContents(new NullProgressMonitor()); + } catch (TeamException e) { Utils.handle(e); } finally { // Update the labels even if the content wasn't fetched correctly. This is -- cgit v1.2.3