"containing ODOMObservable attributes when the " + //$NON-NLS-1$
"ODOMObservable is a: " + //$NON-NLS-1$
oo.getClass().getName());
}
ODOMElement element = (ODOMElement) oo;
String elementName = null;
if (config == ODOMLabelProviderConfiguration.ELEMENT_AND_ATTRIBUTES &&
!element.getName().equals(ODOMElement.UNDEFINED_ELEMENT_NAME)) {
elementName = EclipseCommonMessages.
getLocalizedPolicyName(oo.getName());
}
Element parent = element.getParent();
if (parent == null) {
// We already have the root element that we need for the
// message key.
parent = element;
}
String unformattedSummary =
(String) unformattedSummaries.get(element.getName());
if (unformattedSummary == null) {
if (labelFormatProvider != null) {
unformattedSummary =
labelFormatProvider.provideLabelFormat(element);
}
// If the unfomattedSummary is still null then use the default.
if (unformattedSummary == null) {
unformattedSummary = EditorMessages.getString(RESOURCE_PREFIX +
parent.getName() + ".summary"); //$NON-NLS-1$
}
if (unformattedSummary == null) {
throw new
IllegalStateException("Could not find unformatted summary."); //$NON-NLS-1$
} else {
unformattedSummaries.put(element.getName(), unformattedSummary);
}
}
List attributes = element.getAttributes();
if (logger.isDebugEnabled()) {
logger.debug("Element was: " + oo.getName()); //$NON-NLS-1$
logger.debug("Element attributes were: " + attributes); //$NON-NLS-1$
}