package nongnu.cashews.eclipse.composer.wizards; import java.util.List; import org.eclipse.jface.viewers.ILabelProviderListener; import org.eclipse.jface.viewers.IStructuredContentProvider; import org.eclipse.jface.viewers.ITableLabelProvider; import org.eclipse.jface.viewers.Viewer; import org.eclipse.swt.graphics.Image; class ValueDataLabelProvider implements ITableLabelProvider { /** * Gets the image for the column * * @param element * the element * @param columnIndex * the column index */ public Image getColumnImage(Object element, int columnIndex) { return null; } /** * Gets the text for the column * * @param element * the element * @param columnIndex * the column index */ public String getColumnText(Object element, int columnIndex) { DataEntry ae = (DataEntry) element; switch (columnIndex) { case 0: return ae.getValueC(); case 1: return ae.getValueD(); case 2: return ae.getInput(); } return ""; } /** * Adds a listener * * @param listener * the listener */ public void addListener(ILabelProviderListener listener) { // Do nothing } /** * Disposes any resources */ public void dispose() { // Do nothing } /** * Returns true if changing the property for the element would change the * label * * @param element * the element * @param property * the property */ public boolean isLabelProperty(Object element, String property) { return false; } /** * Removes a listener * * @param listener * the listener */ public void removeListener(ILabelProviderListener listener) { // Do nothing } }