Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2005 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.ant.internal.ui.launchConfigurations;

Ant target label provider for a table
	/* (non-Javadoc)
	 * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, int)
	public Image getColumnImage(Object elementint columnIndex) {
		if (columnIndex == 0) {
			return getImage(element);
		return null;
	/* (non-Javadoc)
	 * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnText(java.lang.Object, int)
	public String getColumnText(Object elementint columnIndex) {
		if (columnIndex == 0){
			return getText(element);
		String desc= ((AntTargetNode)element).getTarget().getDescription();
		if (desc == null) {
			return ""//$NON-NLS-1$
		return desc;
New to GrepCode? Check out our FAQ X