ArrayList<ICommunicationDaemon> additionalDaemons = new ArrayList<ICommunicationDaemon>(
5);
while (e.hasMoreElements()) {
final CommunicationDaemonFactory initializerFactory = e
.nextElement();
final ICommunicationDaemon initializerDaemon = initializerFactory
.createDaemon();
boolean filter = WorkbenchActivityHelper
.filterItem(new IPluginContribution() {
public String getLocalId() {
return initializerDaemon.getDebuggerID();
}
public String getPluginId() {
return initializerFactory.element
.getNamespaceIdentifier();
}
});
if (filter) {
continue;
}
if (DEFAULT_DEBUG_DAEMONS_NAMESPACE
.equals(initializerFactory.element
.getNamespaceIdentifier())) {
if (initializerDaemon.isEnabled()) {
pdtDaemons.add(initializerDaemon);
}
} else {
if (initializerDaemon.isEnabled()) {
additionalDaemons.add(initializerDaemon);
}
}
}
// Create the final daemons list.