mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 23:25:26 +02:00
need to refresh registry, not event firer
This commit is contained in:
parent
e55afd6fa4
commit
da623f63a7
1 changed files with 9 additions and 6 deletions
|
@ -2199,14 +2199,15 @@ public class SystemRegistry implements ISystemRegistryUI, ISystemModelChangeEven
|
|||
subSystems[idx] = factories[idx].createSubSystem(conn, true, getApplicableWizardPages(factories[idx], newConnectionWizardPages)); // give it the opportunity to create a subsystem
|
||||
}
|
||||
|
||||
|
||||
FireNewHostEvents fire = new FireNewHostEvents(conn, subSystems);
|
||||
Display.getDefault().asyncExec(fire);
|
||||
|
||||
FireNewHostEvents fire = new FireNewHostEvents(conn, subSystems, this);
|
||||
Display.getDefault().syncExec(fire);
|
||||
|
||||
}
|
||||
RSEUIPlugin.getThePersistenceManager().commit(conn);
|
||||
SystemPreferencesManager.getPreferencesManager().setConnectionNamesOrder(); // update preferences order list
|
||||
|
||||
RSEUIPlugin.getThePersistenceManager().commit(conn);
|
||||
|
||||
return conn;
|
||||
}
|
||||
|
||||
|
@ -2215,16 +2216,18 @@ public class SystemRegistry implements ISystemRegistryUI, ISystemModelChangeEven
|
|||
{
|
||||
private ISubSystem[] subSystems;
|
||||
private IHost conn;
|
||||
public FireNewHostEvents(IHost host, ISubSystem[] subSystems)
|
||||
private ISystemRegistry reg;
|
||||
public FireNewHostEvents(IHost host, ISubSystem[] subSystems, ISystemRegistry registry)
|
||||
{
|
||||
this.subSystems= subSystems;
|
||||
this.conn = host;
|
||||
this.reg = registry;
|
||||
}
|
||||
|
||||
public void run()
|
||||
{
|
||||
int eventType = ISystemResourceChangeEvents.EVENT_ADD_RELATIVE;
|
||||
SystemResourceChangeEvent event = new SystemResourceChangeEvent(conn, eventType, this);
|
||||
SystemResourceChangeEvent event = new SystemResourceChangeEvent(conn, eventType, reg);
|
||||
//event.setPosition(pool.getConnectionPosition(conn));
|
||||
//event.setPosition(getConnectionPositionInView(conn));
|
||||
event.setRelativePrevious(getPreviousHost(conn));
|
||||
|
|
Loading…
Add table
Reference in a new issue