All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bndtools.editor.common.PrivatePackageTableLabelProvider Maven / Gradle / Ivy

The newest version!
package bndtools.editor.common;

import org.bndtools.core.ui.icons.Icons;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;

public class PrivatePackageTableLabelProvider extends LabelProvider implements ITableLabelProvider {

	private final static Image packageImg = Icons.image("package");

	@Override
	public Image getColumnImage(Object element, int columnIndex) {
		Image image = null;
		if (columnIndex == 0)
			image = packageImg;
		return image;
	}

	@Override
	public String getColumnText(Object element, int columnIndex) {
		String text = null;
		if (columnIndex == 0) {
			text = (String) element;
		}
		return text;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy