*/
public class DescriptiveLabelProvider extends ColumnLabelProvider implements IStyledLabelProvider {
- private static final String TRUNCATE_SIGN = "...";
+ private static final String TRUNCATE_SIGN = "..."; //$NON-NLS-1$
private static final int MAX_LENGTH = 60;
@Override
public String getText(Object element) {
String text = DescriptionHelper.getLabel(element);
+ text = text.replaceAll("[\\r\\n]", ""); //$NON-NLS-1$ //$NON-NLS-2$
if(text.length()>MAX_LENGTH){
text = text.substring(0, MAX_LENGTH)+TRUNCATE_SIGN;
}