public String getText(Object element)
{
if (element instanceof SourceMethod) {
SourceMethod m = (SourceMethod) element;
String[] parameters;
try {
parameters = m.getParameterNames();
if (parameters != null && parameters.length > 0) {
return m.getElementName() + " - " + parameters[0];
}
} catch (ModelException e) {
e.printStackTrace();
}
return m.getElementName();
}
return super.getText(element);
}