From e45a60ad0f6d85b2eaf4b414b159aee33063f5e8 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 2 May 2011 16:53:41 +0200 Subject: [PATCH] cleanup --- .../find/findUsages/FindClassUsagesDialog.java | 6 +++--- .../findUsages/FindPackageUsagesDialog.java | 6 +++--- .../findUsages/AbstractFindUsagesDialog.java | 18 +++++++++--------- .../com/intellij/openapi/ui/DialogWrapper.java | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/java/java-impl/src/com/intellij/find/findUsages/FindClassUsagesDialog.java b/java/java-impl/src/com/intellij/find/findUsages/FindClassUsagesDialog.java index 2e21cbd786c1..5bb1f8f4b13b 100644 --- a/java/java-impl/src/com/intellij/find/findUsages/FindClassUsagesDialog.java +++ b/java/java-impl/src/com/intellij/find/findUsages/FindClassUsagesDialog.java @@ -94,12 +94,12 @@ public class FindClassUsagesDialog extends JavaFindUsagesDialog 0; myIsShowInNewTabVisible = !isSingleFile; - mySearchForTextOccurencesAvailable = searchForTextOccurencesAvailable; + mySearchForTextOccurrencesAvailable = searchForTextOccurrencesAvailable; mySearchInLibrariesAvailable = searchInLibrariesAvailable; myUpdateAction = new ActionListener() { @@ -150,7 +150,7 @@ public abstract class AbstractFindUsagesDialog extends DialogWrapper { public void calcFindUsagesOptions(FindUsagesOptions options) { options.searchScope = myScopeCombo == null ? GlobalSearchScope.allScope(myProject) : myScopeCombo.getSelectedScope(); - options.isSearchForTextOccurrences = isToChange(myCbToSearchForTextOccurences) && isSelected(myCbToSearchForTextOccurences); + options.isSearchForTextOccurrences = isToChange(myCbToSearchForTextOccurrences) && isSelected(myCbToSearchForTextOccurrences); } protected void update() { @@ -172,8 +172,8 @@ public abstract class AbstractFindUsagesDialog extends DialogWrapper { if (myScopeCombo != null) { settings.setDefaultScopeName(myScopeCombo.getSelectedScopeName()); } - if (mySearchForTextOccurencesAvailable && myCbToSearchForTextOccurences != null && myCbToSearchForTextOccurences.isEnabled()) { - myFindUsagesOptions.isSearchForTextOccurrences = myCbToSearchForTextOccurences.isSelected(); + if (mySearchForTextOccurrencesAvailable && myCbToSearchForTextOccurrences != null && myCbToSearchForTextOccurrences.isEnabled()) { + myFindUsagesOptions.isSearchForTextOccurrences = myCbToSearchForTextOccurrences.isSelected(); } if (myCbToSkipResultsWhenOneUsage != null) { @@ -242,8 +242,8 @@ public abstract class AbstractFindUsagesDialog extends DialogWrapper { protected abstract JPanel createFindWhatPanel(); protected void addUsagesOptions(JPanel optionsPanel) { - if (mySearchForTextOccurencesAvailable) { - myCbToSearchForTextOccurences = addCheckboxToPanel(FindBundle.message("find.options.search.for.text.occurences.checkbox"), + if (mySearchForTextOccurrencesAvailable) { + myCbToSearchForTextOccurrences = addCheckboxToPanel(FindBundle.message("find.options.search.for.text.occurences.checkbox"), myFindUsagesOptions.isSearchForTextOccurrences, optionsPanel, false); } diff --git a/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java b/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java index 4d5cbcc3094e..dd0df8650b54 100644 --- a/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java +++ b/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java @@ -1006,7 +1006,7 @@ public abstract class DialogWrapper { /** * Sets margine for command buttons ("OK", "Cance", "Help"). */ - public final void setButtonsMargin(Insets insets) { + public final void setButtonsMargin(@Nullable Insets insets) { myButtonMargins = insets; }