blob: f19dd09172db6dd8b028ca88416d83e40c993906 [file] [log] [blame]
/**
* Copyright (c) 2011 Forschungszentrum Juelich GmbH
* 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Claudia Knobloch
*/
package org.eclipse.ptp.rm.lml.ui.providers;
import java.util.List;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.ptp.rm.lml.internal.core.elements.CellType;
import org.eclipse.ptp.rm.lml.internal.core.elements.RowType;
import org.eclipse.swt.graphics.Image;
public class LMLJobsTableLabelProvider extends LabelProvider implements ITableLabelProvider{
@Override
public Image getColumnImage(Object element, int index) {
return null;
}
@Override
public String getColumnText(Object element, int index) {
RowType row = (RowType) element;
List<CellType> cells = row.getCell();
String returnValue = cells.get(index).getValue();
return returnValue;
}
}