Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-05-04 16:38:42 -0400
committerMichael Valenta2004-05-04 16:38:42 -0400
commit306e824385f38f94bd179cda1101471b590c962b (patch)
tree29daead1328eb92d26f9edb8db8d9736535fe689
parentd10621a8b0cee5a3ef1446b248eceb2367b820f3 (diff)
downloadeclipse.platform.team-306e824385f38f94bd179cda1101471b590c962b.tar.gz
eclipse.platform.team-306e824385f38f94bd179cda1101471b590c962b.tar.xz
eclipse.platform.team-306e824385f38f94bd179cda1101471b590c962b.zip
Bug 60909: Tag dialog refresh should use progress service
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/TagConfigurationDialog.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/TagConfigurationDialog.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/TagConfigurationDialog.java
index 597602265..2308de75f 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/TagConfigurationDialog.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/TagConfigurationDialog.java
@@ -45,6 +45,7 @@ import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Listener;
@@ -67,6 +68,7 @@ import org.eclipse.team.internal.ccvs.ui.model.CVSRootFolderElement;
import org.eclipse.team.internal.ccvs.ui.model.RemoteContentProvider;
import org.eclipse.team.internal.ccvs.ui.repo.NewDateTagAction;
import org.eclipse.team.internal.ccvs.ui.repo.RepositoryManager;
+import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.help.WorkbenchHelp;
import org.eclipse.ui.model.WorkbenchContentProvider;
import org.eclipse.ui.model.WorkbenchLabelProvider;
@@ -693,11 +695,11 @@ public class TagConfigurationDialog extends Dialog {
refreshButton.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event event) {
try {
- CVSUIPlugin.runWithProgress(shell, true /*cancelable*/, new IRunnableWithProgress() {
+ PlatformUI.getWorkbench().getProgressService().run(true, true, new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
try {
CVSUIPlugin.getPlugin().getRepositoryManager().refreshDefinedTags(folder, false /* replace */, true, monitor);
- runnable.run();
+ Display.getDefault().asyncExec(runnable);
} catch (TeamException e) {
throw new InvocationTargetException(e);
}

Back to the top