fAppearanceColorEditor= new ColorEditor(stylesComposite);
fAppearanceColorEditor= new ColorSelector(stylesComposite);
    private Control createAppearancePage(Composite parent) {		Composite appearanceComposite= new Composite(parent, SWT.NONE);		GridLayout layout= new GridLayout();		layout.numColumns= 2;		appearanceComposite.setLayout(layout);		String label;				label= PreferencesMessages.JavaEditorPreferencePage_smartHomeEnd; 		addCheckBox(appearanceComposite, label, PreferenceConstants.EDITOR_SMART_HOME_END, 0);		label= PreferencesMessages.JavaEditorPreferencePage_subWordNavigation; 		addCheckBox(appearanceComposite, label, PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION, 0);		label= PreferencesMessages.JavaEditorPreferencePage_analyseAnnotationsWhileTyping; 		addCheckBox(appearanceComposite, label, PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS, 0);				String text= PreferencesMessages.SmartTypingConfigurationBlock_annotationReporting_link; 		addLink(appearanceComposite, text, INDENT);				Label spacer= new Label(appearanceComposite, SWT.LEFT );		GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL);		gd.horizontalSpan= 2;		gd.heightHint= convertHeightInCharsToPixels(1) / 2;		spacer.setLayoutData(gd);				label= PreferencesMessages.JavaEditorPreferencePage_highlightMatchingBrackets; 		addCheckBox(appearanceComposite, label, PreferenceConstants.EDITOR_MATCHING_BRACKETS, 0);		label= PreferencesMessages.JavaEditorPreferencePage_quickassist_lightbulb; 		addCheckBox(appearanceComposite, label, PreferenceConstants.EDITOR_QUICKASSIST_LIGHTBULB, 0);		Label l= new Label(appearanceComposite, SWT.LEFT );		gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL);		gd.horizontalSpan= 2;		gd.heightHint= convertHeightInCharsToPixels(1) / 2;		l.setLayoutData(gd);				l= new Label(appearanceComposite, SWT.LEFT);		l.setText(PreferencesMessages.JavaEditorPreferencePage_appearanceOptions); 		gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL);		gd.horizontalSpan= 2;		l.setLayoutData(gd);		Composite editorComposite= new Composite(appearanceComposite, SWT.NONE);		layout= new GridLayout();		layout.numColumns= 2;		layout.marginHeight= 0;		layout.marginWidth= 0;		editorComposite.setLayout(layout);		gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.FILL_VERTICAL);		gd.horizontalSpan= 2;		editorComposite.setLayoutData(gd);				fAppearanceColorList= new List(editorComposite, SWT.SINGLE | SWT.V_SCROLL | SWT.BORDER);		gd= new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);		gd.heightHint= convertHeightInCharsToPixels(12);		fAppearanceColorList.setLayoutData(gd);								Composite stylesComposite= new Composite(editorComposite, SWT.NONE);		layout= new GridLayout();		layout.marginHeight= 0;		layout.marginWidth= 0;		layout.numColumns= 2;		stylesComposite.setLayout(layout);		stylesComposite.setLayoutData(new GridData(GridData.FILL_BOTH));				l= new Label(stylesComposite, SWT.LEFT);		l.setText(PreferencesMessages.JavaEditorPreferencePage_color); 		gd= new GridData();		gd.horizontalAlignment= GridData.BEGINNING;		l.setLayoutData(gd);		fAppearanceColorEditor= new ColorEditor(stylesComposite);		Button foregroundColorButton= fAppearanceColorEditor.getButton();		gd= new GridData(GridData.FILL_HORIZONTAL);		gd.horizontalAlignment= GridData.BEGINNING;		foregroundColorButton.setLayoutData(gd);		SelectionListener colorDefaultSelectionListener= new SelectionListener() {			public void widgetSelected(SelectionEvent e) {				boolean systemDefault= fAppearanceColorDefault.getSelection();				fAppearanceColorEditor.getButton().setEnabled(!systemDefault);								int i= fAppearanceColorList.getSelectionIndex();				if (i == -1)					return;				String key= fAppearanceColorListModel[i][2];				if (key != null)					getPreferenceStore().setValue(key, systemDefault);			}			public void widgetDefaultSelected(SelectionEvent e) {}		};				fAppearanceColorDefault= new Button(stylesComposite, SWT.CHECK);		fAppearanceColorDefault.setText(PreferencesMessages.JavaEditorPreferencePage_systemDefault); 		gd= new GridData(GridData.FILL_HORIZONTAL);		gd.horizontalAlignment= GridData.BEGINNING;		gd.horizontalSpan= 2;		fAppearanceColorDefault.setLayoutData(gd);		fAppearanceColorDefault.setVisible(false);		fAppearanceColorDefault.addSelectionListener(colorDefaultSelectionListener);				fAppearanceColorList.addSelectionListener(new SelectionListener() {			public void widgetDefaultSelected(SelectionEvent e) {				// do nothing			}			public void widgetSelected(SelectionEvent e) {				handleAppearanceColorListSelection();			}		});		foregroundColorButton.addSelectionListener(new SelectionListener() {			public void widgetDefaultSelected(SelectionEvent e) {				// do nothing			}			public void widgetSelected(SelectionEvent e) {				int i= fAppearanceColorList.getSelectionIndex();				if (i == -1)					return;				String key= fAppearanceColorListModel[i][1];				PreferenceConverter.setValue(getPreferenceStore(), key, fAppearanceColorEditor.getColorValue());			}		});		return appearanceComposite;	}