* @see org.eclipse.jface.viewers.ITableLabelProvider
* #getColumnText(java.lang.Object, int)
*/
public String getColumnText(Object element, int columnIndex) {
if (element instanceof DirectedRelation) {
DirectedRelation relation = ((DirectedRelation) element);
switch (columnIndex) {
case 0:
return relation.getRelation().toString().toLowerCase();
case 1:
if (relation.matchForward()) {
return relation.getRelation().getForwardName();
}
return relation.getRelation().getForwardName();
case 2:
if (relation.matchBackward()) {
return relation.getRelation().getReverseName();
}
return relation.getRelation().getReverseName();
default:
break;
}
}
return "";