Bug 79790 [1.5][search] Need to distinguish between raw and restricted search in the case of instantiated types
I20041130 Code select now return a special IJavaElement when resolving code list List<String>. If we hand such an element over to the search engine we need means to distinguish between searches for List and searches for List<String>. One idea is to add additional flags to SearchPattern.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchQuery.java
Platform.run(runnable);
			}
			
		} catch (CoreException e) {
			return e.getStatus();
		}
		
		String message= SearchMessages.getString("JavaSearchQuery.status.ok.message"); 
		MessageFormat.format(message, new Object[] { new Integer(textResult.getMatchCount()) });
		return new Status(IStatus.OK, JavaPlugin.getPluginId(), 0, message, null);
	}
	public String getLabel() {
		return SearchMessages.getString("JavaSearchQuery.label"); 
	}
	String getSingularLabel() {
		String desc= null;
		desc= getSearchPattern();
		desc= quote(desc);
		desc= "\""+desc+"\""; 
		String[] args= new String[] {desc, fPatternData.getScopeDescription()}; 
		switch (fPatternData.getLimitTo()) {
			case IJavaSearchConstants.IMPLEMENTORS:
				return SearchMessages.getFormattedString("JavaSearchOperation.singularImplementorsPostfix", args); 
			case IJavaSearchConstants.DECLARATIONS:
				return SearchMessages.getFormattedString("JavaSearchOperation.singularDeclarationsPostfix", args); 
			case IJavaSearchConstants.REFERENCES:
				return SearchMessages.getFormattedString("JavaSearchOperation.singularReferencesPostfix", args); 
			case IJavaSearchConstants.ALL_OCCURRENCES:
				return SearchMessages.getFormattedString("JavaSearchOperation.singularOccurrencesPostfix", args);