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);
PreferencesUtil.createPreferenceDialogOn(shell, "org.eclipse.ui.preferencePages.GeneralTextEditor", null, null);
			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);			}