{
@Override
public IStatus runInUIThread(IProgressMonitor monitor)
{
final String engineViewId = IDebugConstants.ENGINE_VIEW_ID;
final InfoTableView engineView = CoSimLaunchConfigurationDelegate.getInfoTableView(engineViewId);
ISimulationControlProxy simulationControl = new ISimulationControlProxy()
{
public void terminate()
{
try
{
launch.terminate();
} catch (DebugException e)
{
DestecsDebugPlugin.logError("Failed to terminate launch", e);
}
}
public void pause()
{
// not supported
}
public void resume()
{
// not supported
}
};
engineView.getTerminationAction().addSimulationControlProxy(simulationControl);
engineView.getPauseAction().addSimulationControlProxy(simulationControl);
engineView.getResumeAction().addSimulationControlProxy(simulationControl);
return new Status(IStatus.OK, IDebugConstants.PLUGIN_ID, "Listeners OK");
}
};
listeners.schedule();