Bug 63529 Shorten the Job description for Search Jobs
The Job description is shown in the progress segment in the status bar. To avoid that the label in the segment gets compressed like "Search for Referen...space" it should be shortened to only show the Job's main function, e.g. "Java Search", "File Search", ...
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchQuery.java
case IJavaSearchConstants.READ_ACCESSES:
				return SearchMessages.getFormattedString("JavaSearchOperation.singularReadReferencesPostfix", args); 
			case IJavaSearchConstants.WRITE_ACCESSES:
				return SearchMessages.getFormattedString("JavaSearchOperation.singularWriteReferencesPostfix", args); 
			default:
				return SearchMessages.getFormattedString("JavaSearchOperation.singularOccurrencesPostfix", args); 
		}
	}
	
	private String getSearchPattern() {
		String desc;
		if (fPatternData instanceof ElementQuerySpecification) {
			IJavaElement element= ((ElementQuerySpecification)fPatternData).getElement();
			if (fPatternData.getLimitTo() == IJavaSearchConstants.REFERENCES
					&& element.getElementType() == IJavaElement.METHOD)
				desc= PrettySignature.getUnqualifiedMethodSignature((IMethod)element);
			else
				desc= element.getElementName();
			if ("".equals(desc) && element.getElementType() == IJavaElement.PACKAGE_FRAGMENT) 
				desc= SearchMessages.getString("JavaSearchOperation.default_package"); 
		} else {
			desc= ((PatternQuerySpecification)fPatternData).getPattern();
		}
		return desc;
	}
	public static String quote(String searchString) {
		searchString= searchString.replaceAll("\\{", "'{'"); 
		return searchString.replaceAll("\\}", "'}'"); 
		
	}