1 package com.stateofflow.eclipse.metrics.properties.exclusions.table;
2
3 import org.eclipse.core.resources.IFile;
4 import org.eclipse.jface.viewers.ILabelProviderListener;
5 import org.eclipse.jface.viewers.ITableLabelProvider;
6 import org.eclipse.swt.graphics.Image;
7
8 class LabelProvider implements ITableLabelProvider {
9 public void addListener(final ILabelProviderListener listener) {
10 }
11
12 public void dispose() {
13 }
14
15 public Image getColumnImage(final Object element, final int columnIndex) {
16 return null;
17 }
18
19 public String getColumnText(final Object element, final int columnIndex) {
20 return element instanceof String ? (String) element : ((IFile) element).getProjectRelativePath().toString();
21 }
22
23 public boolean isLabelProperty(final Object element, final String property) {
24 return false;
25 }
26
27 public void removeListener(final ILabelProviderListener listener) {
28 }
29 }