private static IAssistProcessor[] getAssistProcessors() { if (fAssistProcessors == null) { try { IConfigurationElement[] elements= Platform.getPluginRegistry().getConfigurationElementsFor(JavaUI.ID_PLUGIN, QUICKASSIST_PROCESSOR_CONTRIBUTION_ID); IAssistProcessor[] result= new IAssistProcessor[elements.length]; for (int i= 0; i < elements.length; i++) { result[i]= (IAssistProcessor) elements[i].createExecutableExtension("class"); } fAssistProcessors= result; } catch (CoreException e) { JavaPlugin.log(e); fAssistProcessors= new IAssistProcessor[] { new QuickAssistProcessor(), new QuickTemplateProcessor() }; }
private static ContributedProcessorDescriptor[] getAssistProcessors() { if (fContributedAssistProcessors == null) { fContributedAssistProcessors= getProcessorDescriptors(QUICKASSIST_PROCESSOR_CONTRIBUTION_ID);
	private static IAssistProcessor[] getAssistProcessors() {		if (fAssistProcessors == null) {			try {				IConfigurationElement[] elements= Platform.getPluginRegistry().getConfigurationElementsFor(JavaUI.ID_PLUGIN, QUICKASSIST_PROCESSOR_CONTRIBUTION_ID);				IAssistProcessor[] result= new IAssistProcessor[elements.length];				for (int i= 0; i < elements.length; i++) {					result[i]= (IAssistProcessor) elements[i].createExecutableExtension("class"); //$NON-NLS-1$				}				fAssistProcessors= result;			} catch (CoreException e) {				JavaPlugin.log(e);				fAssistProcessors= new IAssistProcessor[] { // defaults					new QuickAssistProcessor(),					new QuickTemplateProcessor()				};			}		}		return fAssistProcessors;	}	