Bug 27462 [startup] SearchPlugin is loaded when Java plug-in gets loaded
The Java UI plugin eagerly activates the Search plugin. There are 2 reason: 1) ISearchPageScore adapter that is registered 2) fSearchResultViewEntryAdapterFactory we should investigate whether we can reduce this plugin activation.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaElementAdapterFactory.java
return getProject(java);
		} if (ISearchPageScoreComputer.class.equals(key)) {
			return fSearchPageScoreComputer;
		} if (IWorkbenchAdapter.class.equals(key)) {
			return fgJavaWorkbenchAdapter;
		} if (IResourceLocator.class.equals(key)) {
			return fgResourceLocator;
		} if (IPersistableElement.class.equals(key)) {
			return new PersistableJavaElementFactory(java);
		} if (IContributorResourceAdapter.class.equals(key)) {
			return this;
		} if (ITaskListResourceAdapter.class.equals(key)) {
			return fgTaskListAdapter;
		}
		return null; 
	}
	
	private IResource getResource(IJavaElement element) {
    	/*
    	 * Map a type to the corresponding CU.
    	 */
    	if (element instanceof IType) {
    		IType type= (IType)element;
    		IJavaElement parent= type.getParent();
    		if (parent instanceof ICompilationUnit) {
    			ICompilationUnit cu= (ICompilationUnit)parent;
    			if (cu.isWorkingCopy())
    				element= cu.getOriginalElement();
    			else 
    				element= cu;