Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2003-07-02 20:59:53 +0000
committerDarin Swanson2003-07-02 20:59:53 +0000
commit41bfdca6841cf4a01c5ae002da091d23ea98ef28 (patch)
treefac8fa248ef8475fca3a5c77abc34343032eab0f /org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program
parentff30d8ca5b73bf6bf7e2d90f78fd10638363cb44 (diff)
downloadeclipse.platform.debug-41bfdca6841cf4a01c5ae002da091d23ea98ef28.tar.gz
eclipse.platform.debug-41bfdca6841cf4a01c5ae002da091d23ea98ef28.tar.xz
eclipse.platform.debug-41bfdca6841cf4a01c5ae002da091d23ea98ef28.zip
Bug 38525 - Deadlock refreshing resources for an external tool when in background
Diffstat (limited to 'org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program')
-rw-r--r--org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program/launchConfigurations/BackgroundResourceRefresher.java34
1 files changed, 7 insertions, 27 deletions
diff --git a/org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program/launchConfigurations/BackgroundResourceRefresher.java b/org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program/launchConfigurations/BackgroundResourceRefresher.java
index bc0be6a19..060d2fd8a 100644
--- a/org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program/launchConfigurations/BackgroundResourceRefresher.java
+++ b/org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program/launchConfigurations/BackgroundResourceRefresher.java
@@ -11,25 +11,20 @@
package org.eclipse.ui.externaltools.internal.program.launchConfigurations;
-import java.lang.reflect.InvocationTargetException;
-
import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.debug.core.DebugEvent;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.IDebugEventSetListener;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.model.IProcess;
import org.eclipse.debug.ui.launchVariables.RefreshTab;
-import org.eclipse.jface.dialogs.ProgressMonitorDialog;
-import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.ui.externaltools.internal.model.ExternalToolsPlugin;
/**
- * Refreshes resources as specified by a lanunch configuration, when
+ * Refreshes resources as specified by a launch configuration, when
* an associated process terminates.
*/
-public class BackgroundResourceRefresher implements IDebugEventSetListener, Runnable, IRunnableWithProgress {
+public class BackgroundResourceRefresher implements IDebugEventSetListener, Runnable {
private ILaunchConfiguration fConfiguration;
private IProcess fProcess;
@@ -76,30 +71,15 @@ public class BackgroundResourceRefresher implements IDebugEventSetListener, Runn
}
/**
- * Creates a dialog to run the refresh
+ * Refreshes the resources.
*
* @see java.lang.Runnable#run()
*/
public void run() {
- ProgressMonitorDialog dialog = new ProgressMonitorDialog(ExternalToolsPlugin.getStandardDisplay().getActiveShell());
- try {
- dialog.run(true, true, this);
- } catch (InvocationTargetException e) {
- // report the exception
- } catch (InterruptedException e) {
- }
- }
- /**
- * Peforms the refresh
- *
- * @see org.eclipse.jface.operation.IRunnableWithProgress#run(org.eclipse.core.runtime.IProgressMonitor)
- */
- public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
try {
- RefreshTab.refreshResources(fConfiguration, monitor);
+ RefreshTab.refreshResources(fConfiguration, null);
} catch (CoreException e) {
- throw new InvocationTargetException(e);
- }
+ ExternalToolsPlugin.getDefault().log(e);
+ }
}
-
-}
+} \ No newline at end of file

Back to the top