return (haveLocale ? super.accept(object) : true);
}
};
//Due to performance problems we restrict locale lookup to the current profile (see bug 233958)
IProfileRegistry profileRegistry = null;
try {
profileRegistry = (IProfileRegistry) ServiceHolder.getProfileRegistry();
} catch (ProvisioningException e) {
log.warn("Profile registry unavailable. Default language will be used.");
return new Collector();
}
IProfile profile = profileRegistry.getProfile(IProfileRegistry.SELF);
if (profile == null) {
log.warn("Profile unavailable. Default language will be used.");
return new Collector();
}
IUPropertyQuery iuQuery = new IUPropertyQuery(IInstallableUnit.PROP_TYPE_FRAGMENT, "true"); //$NON-NLS-1$