From 505d25d53fcebe57f8fa9caa51a8b37599e7f3ad Mon Sep 17 00:00:00 2001 From: David McKnight Date: Fri, 6 Nov 2009 14:26:50 +0000 Subject: [PATCH] [294398] [shells] SystemCommandsViewPart always assumes systemResourceChanged() called on Display thread --- .../rse/internal/shells/ui/view/SystemCommandsViewPart.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/internal/shells/ui/view/SystemCommandsViewPart.java b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/internal/shells/ui/view/SystemCommandsViewPart.java index 39ae60016dc..fee33f4278a 100644 --- a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/internal/shells/ui/view/SystemCommandsViewPart.java +++ b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/internal/shells/ui/view/SystemCommandsViewPart.java @@ -772,7 +772,7 @@ public class SystemCommandsViewPart final IRemoteCommandShell fsource = (IRemoteCommandShell)source; Display.getDefault().asyncExec(new Runnable() { public void run() { - updateOutput((IRemoteCommandShell) fsource, false); + updateOutput(fsource, false); updateActionStates(); } }); @@ -811,14 +811,12 @@ public class SystemCommandsViewPart { if (Display.getCurrent() != null){ updateOutput((IRemoteCommandShell) parent, false); - updateActionStates(); } else { final IRemoteCommandShell fsource = (IRemoteCommandShell)parent; Display.getDefault().asyncExec(new Runnable() { public void run() { updateOutput(fsource, false); - updateActionStates(); } }); }