1 /** 2 * <copyright> 3 * 4 * Copyright (c) 2002-2004 IBM Corporation and others. 5 * All rights reserved. This program and the accompanying materials 6 * are made available under the terms of the Eclipse Public License v1.0 7 * which accompanies this distribution, and is available at 8 * http://www.eclipse.org/legal/epl-v10.html 9 * 10 * Contributors: 11 * IBM - Initial API and implementation 12 * 13 * </copyright> 14 * 15 * $Id: ITableItemLabelProvider.java,v 1.2 2005/06/08 06:17:05 nickb Exp $ 16 */ 17 package org.eclipse.emf.edit.provider; 18 19 20 21 /** 22 * This is the interface needed to provide labels for items in a TableViewer. 23 * This interface is similar to {@link IItemLabelProvider}, but this will pass additional information, 24 * namely the column index. 25 */ 26 public interface ITableItemLabelProvider 27 { 28 /** 29 * This does the same thing as ITableLabelProvider.getColumnText. 30 */ 31 public String getColumnText(Object object, int columnIndex); 32 33 /** 34 * This does the same thing as ITableLabelProvider.getColumnImage. 35 */ 36 public Object getColumnImage(Object object, int columnIndex); 37 } 38