}
class ViewLabelProvider extends LabelProvider implements ITableLabelProvider {
public String getColumnText(Object obj, int index) {
String name=(String)obj;
String result=null;
TokenSequence seq;
switch ( index)
{
case 0:
result=name;
break;
case 1:
seq=Bbq_eclipsePlugin.getDefault().getQueryParser().getStoredSequence(name);
if ( seq!=null)
{
if ( seq.getResult() instanceof Transform)
result="Transform";
else
result="Set Expression";
}
break;
case 2:
seq=Bbq_eclipsePlugin.getDefault().getQueryParser().getStoredSequence(name);
if ( seq!=null)
{
result=seq.toString();
}
break;
}
return result;
}