Bug 94643 [preferences] Java Editor Preferences page: mnemonics only work on second stroke
I20050509-2010 On the Java > Editor preference page, I have to press a mnemonic twice to make it really work. E.g. - click on "Mark Occurrences", press Alt+O -> focus is somewhere "between" tab and contents - press Alt+O again -> checkbox gets switched now
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeAssistConfigurationBlock.java
l.setText(PreferencesMessages.JavaEditorPreferencePage_codeAssist_color); 
		gd= new GridData();
		gd.horizontalAlignment= GridData.BEGINNING;
		l.setLayoutData(gd);
		
		fContentAssistColorEditor= new ColorEditor(stylesComposite);
		Button colorButton= fContentAssistColorEditor.getButton();
		gd= new GridData(GridData.FILL_HORIZONTAL);
		gd.horizontalAlignment= GridData.BEGINNING;
		colorButton.setLayoutData(gd);
		
		fContentAssistColorList.addSelectionListener(new SelectionListener() {
			public void widgetDefaultSelected(SelectionEvent e) {
				
			}
			public void widgetSelected(SelectionEvent e) {
				handleContentAssistColorListSelection();
			}
		});
		colorButton.addSelectionListener(new SelectionListener() {
			public void widgetDefaultSelected(SelectionEvent e) {
				
			}
			public void widgetSelected(SelectionEvent e) {
				int i= fContentAssistColorList.getSelectionIndex();
				Key key= (Key) fContentAssistColorListModel[i][1];
				setValue(key, StringConverter.asString(fContentAssistColorEditor.getColorValue()));
			}
		});
	}