/**
* @see ITableLabelProvider#getColumnText(Object, int)
*/
public String getColumnText(final Object element, final int columnIndex) {
if (element instanceof PHPexeItem) {
final PHPexeItem phpExe = (PHPexeItem) element;
switch (columnIndex) {
case 0:
if (isDefault(element)) {
return phpExe.getName()
+ ' '
+ PHPDebugUIMessages.PHPsPreferencePage_WorkspaceDefault;
}
return phpExe.getName();
case 1:
String debuggerName = PHPDebuggersRegistry
.getDebuggerName(phpExe.getDebuggerID());
if (debuggerName == null) {
debuggerName = ""; //$NON-NLS-1$
}
return debuggerName;
case 2:
File executable = phpExe.getExecutable();
if (executable == null) {
return ""; //$NON-NLS-1$
}
return executable.getAbsolutePath();
}