Bug 60415 Should remove Search extension page
I20040428 We should remove the search extension page and should make sure that participants can't damage a search. If a participant generates an exception the participant should be disabled for the rest of the Eclipse sessions. This is consistent with Platform/UI and refactoring.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchQuery.java
return new Status(IStatus.ERROR, JavaPlugin.getPluginId(), 0, SearchMessages.getFormattedString("JavaSearchQuery.error.unsupported_pattern", stringPattern), null);  
			}
			engine.search(pattern, new SearchParticipant[] { SearchEngine.getDefaultSearchParticipant() }, fPatternData.getScope(), collector, mainSearchPM);
			for (int i= 0; i < participants.length; i++) {
				ISearchRequestor requestor= new SearchRequestor(participants[i], textResult);
				IProgressMonitor participantPM= new SubProgressMonitor(monitor, ticks[i]);
				participants[i].search(requestor, fPatternData, participantPM);
			}
			
		} 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() {
		if (fPatternData.getLimitTo() == IJavaSearchConstants.REFERENCES)
			return SearchMessages.getString("JavaSearchQuery.searchfor_references"); 
		else if (fPatternData.getLimitTo() == IJavaSearchConstants.DECLARATIONS)
			return SearchMessages.getString("JavaSearchQuery.searchfor_declarations"); 
		else if (fPatternData.getLimitTo() == IJavaSearchConstants.READ_ACCESSES)
			return SearchMessages.getString("JavaSearchQuery.searchfor_read_access"); 
		else if (fPatternData.getLimitTo() == IJavaSearchConstants.WRITE_ACCESSES)
			return SearchMessages.getString("JavaSearchQuery.searchfor_write_access"); 
		else if (fPatternData.getLimitTo() == IJavaSearchConstants.IMPLEMENTORS)
			return SearchMessages.getString("JavaSearchQuery.searchfor_implementors"); 
		return SearchMessages.getString("JavaSearchQuery.search_label"); 
	}