sRefs = bundleContext.getServiceReferences(IDiagramStencilSet.class.getName(), null);
} catch (InvalidSyntaxException e) {
}
if (sRefs != null) {
for (ServiceReference sRef : sRefs) {
IDiagramStencilSetFactory service = (IDiagramStencilSetFactory) bundleContext.getService(sRef);
_factories.add(service);
}
}
ServiceTrackerCustomizer cust = new ServiceTrackerCustomizer() {
public void removedService(ServiceReference reference, Object service) {
}
public void modifiedService(ServiceReference reference, Object service) {
}
public Object addingService(ServiceReference reference) {
IDiagramStencilSetFactory service = (IDiagramStencilSetFactory) bundleContext.getService(reference);
_factories.add(service);
return service;
}
};
ServiceTracker tracker = new ServiceTracker(bundleContext,