mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 02:15:31 +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);
|
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...
|
// MODEL RESOURCE EVENT METHODS...
|
||||||
|
|
|
@ -62,9 +62,8 @@ import org.eclipse.ui.part.ResourceTransfer;
|
||||||
public class SystemRegistryUI implements ISystemRegistryUI, ISystemViewInputProvider {
|
public class SystemRegistryUI implements ISystemRegistryUI, ISystemViewInputProvider {
|
||||||
|
|
||||||
private static SystemRegistryUI _instance = null;
|
private static SystemRegistryUI _instance = null;
|
||||||
private ISystemRegistry registry = null;
|
private SystemRegistry registry = null;
|
||||||
|
|
||||||
private SystemResourceChangeManager listenerManager = null;
|
|
||||||
private Viewer viewer = null;
|
private Viewer viewer = null;
|
||||||
|
|
||||||
// progress monitor support
|
// progress monitor support
|
||||||
|
@ -85,8 +84,7 @@ public class SystemRegistryUI implements ISystemRegistryUI, ISystemViewInputProv
|
||||||
protected SystemRegistryUI(String logfilePath)
|
protected SystemRegistryUI(String logfilePath)
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
registry = RSECorePlugin.getTheSystemRegistry();
|
registry = SystemRegistry.getInstance();
|
||||||
listenerManager = new SystemResourceChangeManager();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------
|
// ----------------------------
|
||||||
|
@ -586,7 +584,7 @@ public class SystemRegistryUI implements ISystemRegistryUI, ISystemViewInputProv
|
||||||
*/
|
*/
|
||||||
public void postEvent(ISystemResourceChangeEvent event)
|
public void postEvent(ISystemResourceChangeEvent event)
|
||||||
{
|
{
|
||||||
listenerManager.postNotify(event);
|
registry.getResourceChangeManager().postNotify(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue