mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-14 04:25:21 +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;
|
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();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue