1 package com.quantum.view;
3 import org.eclipse.jface.viewers.ILabelProviderListener;
4 import org.eclipse.jface.viewers.ITableLabelProvider;
5 import org.eclipse.swt.graphics.Image;
7 import com.quantum.QuantumPlugin;
8 import com.quantum.model.JDBCDriver;
14 public class JDBCDriverLabelProvider implements ITableLabelProvider {
16 public Image getColumnImage(Object element, int columnIndex) {
17 if (columnIndex == 0) {
18 return QuantumPlugin.getImage("driver.gif");
24 public String getColumnText(Object element, int columnIndex) {
25 switch (columnIndex) {
27 return ((JDBCDriver) element).getName();
29 return ((JDBCDriver) element).getClassName();
31 return ((JDBCDriver) element).getVersion();
33 return ((JDBCDriver) element).getJarFileName();
38 public void addListener(ILabelProviderListener listener) {
41 public void dispose() {
44 public boolean isLabelProperty(Object element, String property) {
48 public void removeListener(ILabelProviderListener listener) {