Revision b8205e98
Added by Patrick Plitzner almost 6 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/BulkEditorLabelProvider.java | ||
---|---|---|
16 | 16 |
import org.eclipse.core.runtime.IPath; |
17 | 17 |
import org.eclipse.core.runtime.Path; |
18 | 18 |
import org.eclipse.jface.viewers.LabelProvider; |
19 |
import org.eclipse.jface.viewers.StyledString; |
|
19 | 20 |
import org.eclipse.swt.graphics.Image; |
20 | 21 |
|
21 | 22 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
... | ... | |
67 | 68 |
@Override |
68 | 69 |
public String getText(Object element) { |
69 | 70 |
if(element instanceof CdmBase){ |
70 |
return editor.getEditorInput().getText((CdmBase) element); |
|
71 |
String text = editor.getEditorInput().getText((CdmBase) element); |
|
72 |
if(editor.getEditorInput().getTypeText(element)!=null){ |
|
73 |
text += " ["+editor.getEditorInput().getTypeText(element)+"]"; |
|
74 |
} |
|
75 |
return text; |
|
71 | 76 |
} |
72 | 77 |
return super.getText(element); |
73 | 78 |
} |
Also available in: Unified diff
ref #6932 add type info to bulk editor