diff options
author | Jean Michel-Lemieux | 2004-02-26 22:05:12 +0000 |
---|---|---|
committer | Jean Michel-Lemieux | 2004-02-26 22:05:12 +0000 |
commit | 5cfd2b65bf161109b117a403abeaf7158513359a (patch) | |
tree | 6c19369ec52ea9d097b2b817b31be2799c425d7f | |
parent | 8fe102cd7979a4c197d9536822729228b2caf11c (diff) | |
download | eclipse.platform.team-5cfd2b65bf161109b117a403abeaf7158513359a.tar.gz eclipse.platform.team-5cfd2b65bf161109b117a403abeaf7158513359a.tar.xz eclipse.platform.team-5cfd2b65bf161109b117a403abeaf7158513359a.zip |
Removed use of busycursorwhile because it is buggy.
-rw-r--r-- | bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/viewers/SynchronizeCompareInput.java | 15 |
1 files 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 |