Community
Participate
Working Groups
Build Identifier: CDO from HEAD on April, 13th I need to get the translated feature name of a feature from the related edit plugin. Unfortunately, I have no instance of any object with such a feature available. I only have the feature and an AdapterFactory (a ComposedAdapterFactory). I have a custom Diagnostician that overrides the getObjectLabel(EObject) and the getFeatureLabel(EStructuralFeature) methods. This is needed to customize the ValidationStatus messages to use translated object and feature labels. It is absolutely no problem to get the object label in getObjectLabel(EObject): public String getObjectLabel (EObject eObject) { if (_adapterFactory != null && !eObject.eIsProxy()) { IItemLabelProvider itemLabelProvider= (IItemLabelProvider) _adapterFactory.adapt(eObject, IItemLabelProvider.class); if (itemLabelProvider != null) { return itemLabelProvider.getText(eObject); } } return super.getObjectLabel(eObject); } But what to do in the getFeatureLabel(EStructuralFeature) method??? As I mentioned before, the Diagnostician only has an instance of a ComposedAdapterFactory.... Reproducible: Always