Bug 20237 TVT2: mnemonic not workin in java template prefs
With build F2. A mnemonic in the new template dialog is not working. Below are the replication steps. 1) Window>Preferences 2) Java>Templates 3) Click on New... 4) Mnemonic for Patterns does not work. All others are fine.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java
private final IContentAssistProcessor fProcessor;
		SimpleJavaSourceViewerConfiguration(JavaTextTools tools, ITextEditor editor, IContentAssistProcessor processor) {
			super(tools, editor);
			fProcessor= processor;
		}
		
		/*
		 * @see SourceViewerConfiguration#getContentAssistant(ISourceViewer)
		 */
		public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
			IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore();
			ContentAssistant assistant= new ContentAssistant();
			assistant.setContentAssistProcessor(fProcessor, IDocument.DEFAULT_CONTENT_TYPE);
				
			assistant.setContentAssistProcessor(fProcessor, JavaPartitionScanner.JAVA_STRING);
			assistant.setContentAssistProcessor(fProcessor, JavaPartitionScanner.JAVA_SINGLE_LINE_COMMENT);
			
			assistant.setContentAssistProcessor(fProcessor, JavaPartitionScanner.JAVA_DOC);
			assistant.enableAutoInsert(store.getBoolean(ContentAssistPreference.AUTOINSERT));
			assistant.enableAutoActivation(store.getBoolean(ContentAssistPreference.AUTOACTIVATION));
			assistant.setAutoActivationDelay(store.getInt(ContentAssistPreference.AUTOACTIVATION_DELAY));
			assistant.setProposalPopupOrientation(assistant.PROPOSAL_OVERLAY);
			assistant.setContextInformationPopupOrientation(assistant.CONTEXT_INFO_ABOVE);
			assistant.setInformationControlCreator(getInformationControlCreator(sourceViewer));
			Display display= sourceViewer.getTextWidget().getDisplay();
			
			Color background= createColor(store, ContentAssistPreference.PROPOSALS_BACKGROUND, display);			
			assistant.setContextInformationPopupBackground(background);
			assistant.setContextSelectorBackground(background);
			assistant.setProposalSelectorBackground(background);