mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 23:25:26 +02:00
null check that for some reason didn't get committed when I made the change a week ago
This commit is contained in:
parent
19820790fc
commit
d8fff26c00
1 changed files with 9 additions and 1 deletions
|
@ -2326,7 +2326,15 @@ public class SystemRegistry implements ISystemRegistryUI, ISystemModelChangeEven
|
|||
SystemResourceChangeEvent event = new SystemResourceChangeEvent(conn, eventType, reg);
|
||||
//event.setPosition(pool.getConnectionPosition(conn));
|
||||
//event.setPosition(getConnectionPositionInView(conn));
|
||||
event.setRelativePrevious(getPreviousHost(conn));
|
||||
IHost previous = getPreviousHost(conn);
|
||||
if (previous != null)
|
||||
{
|
||||
event.setRelativePrevious(previous);
|
||||
}
|
||||
else
|
||||
{
|
||||
event.setType(ISystemResourceChangeEvents.EVENT_ADD);
|
||||
}
|
||||
fireEvent(event);
|
||||
fireModelChangeEvent(SYSTEM_RESOURCE_ADDED, SYSTEM_RESOURCETYPE_CONNECTION, conn, null);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue