// Find the best FormattedValueLabelText to replace (the one that would print "details" format)
// this should the one at index 1, according to super.createLabelProvider() in
// org.eclipse.cdt.dsf.ui_2.4.0.201402142303
for (int i = 0; i < labelAttributes.length; i++) {
LabelAttribute labelAttribute = labelAttributes[i];
if(labelAttribute instanceof FormattedValueLabelText) {
preferredIndex = i;
}
if(labelAttribute instanceof ErrorLabelText) {
labelAttributes[i] = new ErrorLabelText_Extension();