Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2006-01-25 12:04:39 +0000
committerMichael Valenta2006-01-25 12:04:39 +0000
commit4f40bc34159ea5e56330d153a6e2a14d14822c55 (patch)
tree533226188d6e01fd9aae29e5fdc9abd19938c668
parent9964616c64bcf46a46cf50cd57d1edde536f901a (diff)
downloadeclipse.platform.team-4f40bc34159ea5e56330d153a6e2a14d14822c55.tar.gz
eclipse.platform.team-4f40bc34159ea5e56330d153a6e2a14d14822c55.tar.xz
eclipse.platform.team-4f40bc34159ea5e56330d153a6e2a14d14822c55.zip
Bug 125130 Tons of "Widget is disposed" errors from CVSHistoryPage$1.run
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSHistoryPage.java15
1 files changed, 7 insertions, 8 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSHistoryPage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSHistoryPage.java
index a5b65737b..53d5fae7c 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSHistoryPage.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSHistoryPage.java
@@ -689,14 +689,13 @@ public class CVSHistoryPage extends HistoryPage {
try {
if (fileHistory != null && !shutdown) {
fileHistory.refresh(monitor);
- getSite().getShell().getDisplay().asyncExec(new Runnable() {
- public void run() {
- historyTableProvider.setLocalRevisionsDisplayed(fileHistory.getIncludesExists());
- historyTableProvider.setFile(fileHistory, file);
- tableViewer.setInput(fileHistory);
- }
- });
-
+ Utils.asyncExec(new Runnable() {
+ public void run() {
+ historyTableProvider.setLocalRevisionsDisplayed(fileHistory.getIncludesExists());
+ historyTableProvider.setFile(fileHistory, file);
+ tableViewer.setInput(fileHistory);
+ }
+ }, tableViewer);
}
return Status.OK_STATUS;
} catch (TeamException e) {

Back to the top