}
@Override
public String getText(Object element) {
if(element instanceof Query) {
Query storedQuery = (Query)element;
if(storedQuery.getProjectId()<1) {
return MessageFormat.format(Messages.LBL_X_ALL_PROJECTS, storedQuery.getName());
} else {
return MessageFormat.format(Messages.LBL_X_PROJECT_X, storedQuery.getName(), storedQuery.getProjectId());
}
}
if (element instanceof Property) {