mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
Fix SystemRegistryUI.postEvent()
This commit is contained in:
parent
0905ccf300
commit
210612068c
2 changed files with 14 additions and 5 deletions
|
@ -2461,6 +2461,17 @@ public class SystemRegistry implements ISystemRegistry
|
|||
{
|
||||
l.systemResourceChanged(event);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the listener manager such that the SystemRegistryUI
|
||||
* can re-use it for posting events that can only be posted
|
||||
* in UI.
|
||||
* @return the System resource change listener manager
|
||||
* used by the registry.
|
||||
*/
|
||||
public SystemResourceChangeManager getResourceChangeManager() {
|
||||
return listenerManager;
|
||||
}
|
||||
|
||||
// ----------------------------
|
||||
// MODEL RESOURCE EVENT METHODS...
|
||||
|
|
|
@ -62,9 +62,8 @@ import org.eclipse.ui.part.ResourceTransfer;
|
|||
public class SystemRegistryUI implements ISystemRegistryUI, ISystemViewInputProvider {
|
||||
|
||||
private static SystemRegistryUI _instance = null;
|
||||
private ISystemRegistry registry = null;
|
||||
private SystemRegistry registry = null;
|
||||
|
||||
private SystemResourceChangeManager listenerManager = null;
|
||||
private Viewer viewer = null;
|
||||
|
||||
// progress monitor support
|
||||
|
@ -85,8 +84,7 @@ public class SystemRegistryUI implements ISystemRegistryUI, ISystemViewInputProv
|
|||
protected SystemRegistryUI(String logfilePath)
|
||||
{
|
||||
super();
|
||||
registry = RSECorePlugin.getTheSystemRegistry();
|
||||
listenerManager = new SystemResourceChangeManager();
|
||||
registry = SystemRegistry.getInstance();
|
||||
}
|
||||
|
||||
// ----------------------------
|
||||
|
@ -586,7 +584,7 @@ public class SystemRegistryUI implements ISystemRegistryUI, ISystemViewInputProv
|
|||
*/
|
||||
public void postEvent(ISystemResourceChangeEvent event)
|
||||
{
|
||||
listenerManager.postNotify(event);
|
||||
registry.getResourceChangeManager().postNotify(event);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue