mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 17:55:39 +02:00
shell refresh needs to be on main thread
This commit is contained in:
parent
a148f884d7
commit
000f9f0413
1 changed files with 10 additions and 4 deletions
|
@ -817,24 +817,30 @@ public abstract class RemoteCmdSubSystem extends SubSystem implements IRemoteCmd
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
ISystemRegistry registry = RSECorePlugin.getTheSystemRegistry();
|
|
||||||
registry.fireEvent(new SystemResourceChangeEvent(this, ISystemResourceChangeEvents.EVENT_REFRESH, this));
|
|
||||||
|
|
||||||
|
Refresh refreshOnMain = new Refresh(this);
|
||||||
|
Display.getDefault().asyncExec(refreshOnMain);
|
||||||
|
|
||||||
return cmdShell;
|
return cmdShell;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* overridden so that for universal we don't need to do in modal thread
|
* overridden so that for universal we don't need to do in modal thread
|
||||||
*/
|
*/
|
||||||
public IRemoteCommandShell runShell(Object context, IProgressMonitor monitor) throws Exception
|
public IRemoteCommandShell runShell(Object context, IProgressMonitor monitor) throws Exception
|
||||||
{
|
{
|
||||||
IRemoteCommandShell cmdShell = internalRunShell(context, monitor);
|
IRemoteCommandShell cmdShell = internalRunShell(context, monitor);
|
||||||
ISystemRegistry registry = RSECorePlugin.getTheSystemRegistry();
|
|
||||||
registry.fireEvent(new SystemResourceChangeEvent(this, ISystemResourceChangeEvents.EVENT_REFRESH, this));
|
Refresh refreshOnMain = new Refresh(this);
|
||||||
|
Display.getDefault().asyncExec(refreshOnMain);
|
||||||
|
|
||||||
return cmdShell;
|
return cmdShell;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute a remote command. This is only applicable if the subsystem
|
* Execute a remote command. This is only applicable if the subsystem
|
||||||
* factory reports true for supportsCommands().
|
* factory reports true for supportsCommands().
|
||||||
|
|
Loading…
Add table
Reference in a new issue