use of org.eclipse.ecf.core.IContainerManager in project ecf by eclipse.
the class DataProcessorConsumerApplication method getContainerManagerService.
private IContainerManager getContainerManagerService() {
if (containerManagerServiceTracker == null) {
containerManagerServiceTracker = new ServiceTracker(bundleContext, IContainerManager.class.getName(), null);
containerManagerServiceTracker.open();
}
return (IContainerManager) containerManagerServiceTracker.getService();
}
use of org.eclipse.ecf.core.IContainerManager in project ecf by eclipse.
the class AbstractDatashareApplication method getContainerManager.
protected IContainerManager getContainerManager() {
if (containerManagerTracker == null) {
containerManagerTracker = new ServiceTracker(bundleContext, IContainerManager.class.getName(), null);
containerManagerTracker.open();
}
return (IContainerManager) containerManagerTracker.getService();
}
use of org.eclipse.ecf.core.IContainerManager in project ecf by eclipse.
the class Activator method getContainerManager.
public IContainerManager getContainerManager() {
if (containerManagerTracker == null) {
containerManagerTracker = new ServiceTracker(this.context, IContainerManager.class.getName(), null);
containerManagerTracker.open();
}
return (IContainerManager) containerManagerTracker.getService();
}
use of org.eclipse.ecf.core.IContainerManager in project ecf by eclipse.
the class AbstractRosterMenuContributionItem method getPresenceContainerAdapters.
protected List getPresenceContainerAdapters() {
List presenceContainers = new ArrayList();
IContainerManager containerManager = Activator.getDefault().getContainerManager();
if (containerManager == null)
return presenceContainers;
IContainer[] containers = containerManager.getAllContainers();
for (int i = 0; i < containers.length; i++) {
IPresenceContainerAdapter presenceContainerAdapter = (IPresenceContainerAdapter) containers[i].getAdapter(IPresenceContainerAdapter.class);
if ((containers[i].getConnectedID() != null) && (presenceContainerAdapter != null)) {
presenceContainers.add(presenceContainerAdapter);
}
}
return presenceContainers;
}
use of org.eclipse.ecf.core.IContainerManager in project ecf by eclipse.
the class Activator method getContainerManager.
public IContainerManager getContainerManager() {
if (containerManagerTracker == null) {
containerManagerTracker = new ServiceTracker(bundleContext, IContainerManager.class.getName(), null);
containerManagerTracker.open();
}
return (IContainerManager) containerManagerTracker.getService();
}
Aggregations