// IGeoResourceInfo info = resource.getInfo(new NullProgressMonitor());
// if(info != null) {
// title = info.getTitle();
// }
// }
ID id = resource.getID();
if(title == null) {
title = id.labelResource();
}
return title;
} else if (resolve instanceof IService) {
IService service = (IService) resolve;
ID id = service.getID();
String title = service.getTitle();
// if (title == null) {
// IServiceInfo info = service.getInfo(new NullProgressMonitor());
// if (info != null) {
// title = info.getTitle();
// }
// }
if (title == null) {
// we are going to fake something here
String name = id.toString();
name = name.replace('_', ' ');
name = name.replace("%20", " "); //$NON-NLS-1$ //$NON-NLS-2$
return name;
}
if (id.getTypeQualifier() != null) {
return title + "(" + id.getTypeQualifier() + ")";
} else {
return title;
}
} else if (resolve instanceof IProcess) {
IProcess proc = (IProcess) element;