1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-13 20:15:22 +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; final IRemoteCommandShell fsource = (IRemoteCommandShell)source;
Display.getDefault().asyncExec(new Runnable() { Display.getDefault().asyncExec(new Runnable() {
public void run() { public void run() {
updateOutput((IRemoteCommandShell) fsource, false); updateOutput(fsource, false);
updateActionStates(); updateActionStates();
} }
}); });
@ -811,14 +811,12 @@ public class SystemCommandsViewPart
{ {
if (Display.getCurrent() != null){ if (Display.getCurrent() != null){
updateOutput((IRemoteCommandShell) parent, false); updateOutput((IRemoteCommandShell) parent, false);
updateActionStates();
} }
else { else {
final IRemoteCommandShell fsource = (IRemoteCommandShell)parent; final IRemoteCommandShell fsource = (IRemoteCommandShell)parent;
Display.getDefault().asyncExec(new Runnable() { Display.getDefault().asyncExec(new Runnable() {
public void run() { public void run() {
updateOutput(fsource, false); updateOutput(fsource, false);
updateActionStates();
} }
}); });
} }