1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-15 13:05:22 +02:00

[249222] [api] Access to communication listeners in AbstractConnectorService

This commit is contained in:
David McKnight 2008-11-25 14:44:17 +00:00
parent fd74b97350
commit 17a5fa88b8
2 changed files with 22 additions and 1 deletions

View file

@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.rse.core;singleton:=true
Bundle-Version: 3.0.100.qualifier
Bundle-Version: 3.1.0.qualifier
Bundle-Activator: org.eclipse.rse.core.RSECorePlugin
Bundle-Localization: plugin
Require-Bundle: org.eclipse.core.runtime,

View file

@ -17,6 +17,7 @@
* Martin Oberhuber (Wind River) - [185750] Remove IConnectorService.getHostType()
* David Dykstal (IBM) - [189483] fix spelling in initialize/uninitialize method signatures
* David Dykstal (IBM) - [210474] Deny save password function missing
* David McKnight (IBM) - [249222] [api] Access to communication listeners in AbstractConnectorService
********************************************************************************/
package org.eclipse.rse.core.subsystems;
@ -503,6 +504,26 @@ public abstract class AbstractConnectorService extends RSEModelObject implements
return result;
}
/**
* Check if there are any active communication listeners listening to
* this connector service.
*
* @return true if there are any active communication listeners
*
* @since 3.1
*/
public boolean hasActiveCommunicationListeners() {
if (commListeners.size() > 0){
for (int i = 0; i < commListeners.size(); i++){
ICommunicationsListener listener = (ICommunicationsListener)commListeners.get(i);
if (!listener.isPassiveCommunicationsListener()){
return true;
}
}
}
return false;
}
}