if (host != null) {
SystemViewPart viewPart = (SystemViewPart) SystemPerspectiveHelpers.showView(SystemViewPart.ID);
final SystemView view = viewPart.getSystemView();
ISubSystem[] subSystems = sysReg.getSubSystems(host);
if (subSystems.length > 0) {
final ISubSystem system = subSystems[0];
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
public void run() {
view.setExpandedState(system.getHost(), true);
view.setExpandedState(system, true);
view.setSelection(new StructuredSelection(system));
}
});
}