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:
parent
fd74b97350
commit
17a5fa88b8
2 changed files with 22 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue