1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 14:15:23 +02:00

[294398] [shells] SystemCommandsViewPart always assumes systemResourceChanged() called on Display thread

This commit is contained in:
David McKnight 2009-11-06 14:26:50 +00:00
parent e219f9fc00
commit 505d25d53f

View file

@ -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();
}
});
}