mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 03:53:21 +02:00
[207100] adding ISystemRegistry.isRegisteredSystemRemoteChangeListener
This commit is contained in:
parent
e925b3380b
commit
6c0b64d3dd
3 changed files with 26 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [189123] Prepare ISystemRegistry for move into non-UI
|
* Martin Oberhuber (Wind River) - [189123] Prepare ISystemRegistry for move into non-UI
|
||||||
* Martin Oberhuber (Wind River) - [175680] Deprecate obsolete ISystemRegistry methods
|
* Martin Oberhuber (Wind River) - [175680] Deprecate obsolete ISystemRegistry methods
|
||||||
* Martin Oberhuber (Wind River) - [190271] Move ISystemViewInputProvider to Core
|
* Martin Oberhuber (Wind River) - [190271] Move ISystemViewInputProvider to Core
|
||||||
|
* David McKnight (IBM) - [207100] adding ISystemRegistry.isRegisteredSystemRemoteChangeListener
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.core.model;
|
package org.eclipse.rse.core.model;
|
||||||
|
@ -729,6 +730,12 @@ public interface ISystemRegistry extends ISchedulingRule, IAdaptable, ISystemVie
|
||||||
*/
|
*/
|
||||||
public void removeSystemRemoteChangeListener(ISystemRemoteChangeListener l);
|
public void removeSystemRemoteChangeListener(ISystemRemoteChangeListener l);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Query if the ISystemRemoteChangeListener is already listening for SystemRemoteChange events
|
||||||
|
*/
|
||||||
|
public boolean isRegisteredSystemRemoteChangeListener(ISystemRemoteChangeListener l);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notify all listeners of a change to a remote resource such as a file.
|
* Notify all listeners of a change to a remote resource such as a file.
|
||||||
* You would not normally call this as the methods in this class call it when appropriate.
|
* You would not normally call this as the methods in this class call it when appropriate.
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||||
|
* David McKnight (IBM) - [207100] adding SystemRemoteChangeEventManager.isRegisteredSystemRemoteChangeListener
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.core.model;
|
package org.eclipse.rse.internal.core.model;
|
||||||
|
@ -33,6 +34,14 @@ public class SystemRemoteChangeEventManager
|
||||||
public SystemRemoteChangeEventManager()
|
public SystemRemoteChangeEventManager()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Query if the ISystemRemoteChangeListener is already listening for SystemRemoteChange events
|
||||||
|
*/
|
||||||
|
public boolean isRegisteredSystemRemoteChangeListener(ISystemRemoteChangeListener l)
|
||||||
|
{
|
||||||
|
return listeners.contains(l);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a listener to list of listeners.
|
* Add a listener to list of listeners.
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
* David McKnight (IBM) - [165674] Sort subsystem configurations to be in deterministic order
|
* David McKnight (IBM) - [165674] Sort subsystem configurations to be in deterministic order
|
||||||
* Martin Oberhuber (Wind River) - [165674] Sort subsystem configurations by priority then Id
|
* Martin Oberhuber (Wind River) - [165674] Sort subsystem configurations by priority then Id
|
||||||
* Martin Oberhuber (Wind River) - [194898] Avoid NPE when doing EVENT_REFRESH_REMOTE on a subsys without filters
|
* Martin Oberhuber (Wind River) - [194898] Avoid NPE when doing EVENT_REFRESH_REMOTE on a subsys without filters
|
||||||
|
* David McKnight (IBM) - [207100] adding ISystemRegistry.isRegisteredSystemRemoteChangeListener
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.ui.internal.model;
|
package org.eclipse.rse.ui.internal.model;
|
||||||
|
@ -2685,6 +2686,15 @@ public class SystemRegistry implements ISystemRegistry
|
||||||
remoteListManager.removeSystemRemoteChangeListener(l);
|
remoteListManager.removeSystemRemoteChangeListener(l);
|
||||||
remoteListCount--;
|
remoteListCount--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Query if the ISystemRemoteChangeListener is already listening for SystemRemoteChange events
|
||||||
|
*/
|
||||||
|
public boolean isRegisteredSystemRemoteChangeListener(ISystemRemoteChangeListener l)
|
||||||
|
{
|
||||||
|
return remoteListManager.isRegisteredSystemRemoteChangeListener(l);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notify all listeners of a change to a remote resource such as a file.
|
* Notify all listeners of a change to a remote resource such as a file.
|
||||||
* You would not normally call this as the methods in this class call it when appropriate.
|
* You would not normally call this as the methods in this class call it when appropriate.
|
||||||
|
|
Loading…
Add table
Reference in a new issue