blob: e6b7a013f9b0fd8be7b959b022aa466315ef14c8 [file] [log] [blame]
package org.eclipse.jface.tests.viewers.interactive;
import org.eclipse.swt.graphics.*;
import org.eclipse.swt.widgets.*;
import org.eclipse.jface.resource.*;
import org.eclipse.jface.tests.viewers.*;
import org.eclipse.jface.viewers.*;
public class TestTableTreeLabelProvider extends TestLabelProvider implements ITableLabelProvider{
/**
* Returns the label image for a given column.
*
* @param element the object representing the entire row. Can be
* <code>null</code> indicating that no input object is set in the viewer.
* @param columnIndex the index of the column in which the label appears. Numbering is zero based.
*/
public Image getColumnImage(Object element, int columnIndex) {
return getImage();
}
/**
* Returns the label text for a given column.
*
* @param element the object representing the entire row. Can be
* <code>null</code> indicating that no input object is set in the viewer.
* @param columnIndex the index of the column in which the label appears. Numbering is zero based.
*/
public String getColumnText(Object element, int columnIndex) {
if (element != null)
return element.toString() + " column " + columnIndex;
return null;
}
}