public String getText(Object element) {
if (element instanceof ICategoryNode) {
return ((ICategoryNode) element).getName();
}
else if (element instanceof ILaunchNode) {
ILaunchNode launchConfiguration = (ILaunchNode) element;
return debugModelPresentation.getText(launchConfiguration.getLaunchConfiguration());
}
else if (element instanceof ILaunchTypeNode) {
return debugModelPresentation.getText(((ILaunchTypeNode) element).getLaunchConfigurationType());
}
return debugModelPresentation.getText(element);