ret.add(compartmentEntry);
// add all create-connection-features to the new stack-entry
ICreateConnectionFeature[] createConnectionFeatures = featureProvider.getCreateConnectionFeatures();
for (ICreateConnectionFeature cf : createConnectionFeatures) {
if (pref.isEnabled(FeatureMap.getElement(cf))) {
ConnectionCreationToolEntry connectionCreationToolEntry = new ConnectionCreationToolEntry(
cf.getCreateName(), cf.getCreateDescription(), cf.getCreateImageId(),
cf.getCreateLargeImageId());
connectionCreationToolEntry.addCreateConnectionFeature(cf);
compartmentEntry.addToolEntry(connectionCreationToolEntry);
}
}
}