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:
parent
e219f9fc00
commit
505d25d53f
1 changed files with 1 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue