Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErich Gamma2002-08-09 17:03:54 +0000
committerErich Gamma2002-08-09 17:03:54 +0000
commit404f54387bc4287a99d100d8e4493b78337d9b7d (patch)
tree4b1cf880ffd8c475cf41cf23de8febac1a8995ff
parentb44621b08bd8a63d0d06bdec4777a5df45857842 (diff)
downloadeclipse.platform.text-404f54387bc4287a99d100d8e4493b78337d9b7d.tar.gz
eclipse.platform.text-404f54387bc4287a99d100d8e4493b78337d9b7d.tar.xz
eclipse.platform.text-404f54387bc4287a99d100d8e4493b78337d9b7d.zip
made createFieldEditors API compliant (should not cache getFieldEditorParent)
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/SearchPreferencePage.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchPreferencePage.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchPreferencePage.java
index 1a3cbaedc..e4207f31e 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchPreferencePage.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchPreferencePage.java
@@ -78,25 +78,23 @@ public class SearchPreferencePage extends FieldEditorPreferencePage implements I
}
protected void createFieldEditors() {
- Composite parent= getFieldEditorParent();
-
BooleanFieldEditor boolEditor= new BooleanFieldEditor(
REUSE_EDITOR,
SearchMessages.getString("SearchPreferencePage.reuseEditor"), //$NON-NLS-1$
- parent
+ getFieldEditorParent()
);
addField(boolEditor);
fEmphasizedCheckbox= new BooleanFieldEditor(
EMPHASIZE_POTENTIAL_MATCHES,
SearchMessages.getString("SearchPreferencePage.emphasizePotentialMatches"), //$NON-NLS-1$
- parent);
+ getFieldEditorParent());
addField(fEmphasizedCheckbox);
fColorEditor= new ColorEditor(
POTENTIAL_MATCH_FG_COLOR,
SearchMessages.getString("SearchPreferencePage.potentialMatchFgColor"), //$NON-NLS-1$
- parent
+ getFieldEditorParent()
);
addField(fColorEditor);
fColorEditor.setEnabled(arePotentialMatchesEmphasized());

Back to the top