diff --git a/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettingsPane.java b/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettingsPane.java index 53441d3544ba..8cef061d8e44 100644 --- a/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettingsPane.java +++ b/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettingsPane.java @@ -19,10 +19,7 @@ import com.intellij.spellchecker.SpellCheckerManager; import com.intellij.spellchecker.inspections.SpellCheckingInspection; import com.intellij.spellchecker.util.SpellCheckerBundle; import com.intellij.spellchecker.util.Strings; -import com.intellij.ui.AddDeleteListPanel; -import com.intellij.ui.HyperlinkLabel; -import com.intellij.ui.IdeBorderFactory; -import com.intellij.ui.OptionalChooserComponent; +import com.intellij.ui.*; import com.intellij.ui.components.JBCheckBox; import com.intellij.util.containers.ContainerUtil; import com.intellij.util.ui.JBUI; @@ -220,6 +217,13 @@ public class SpellCheckerSettingsPane implements Disposable { } + @Override + protected void customizeDecorator(ToolbarDecorator decorator) { + decorator.setRemoveAction((button) -> { + ListUtil.removeSelectedItems(myList); + }); + } + @Override protected String findItemToAdd() { String word = Messages.showInputDialog(SpellCheckerBundle.message("enter.simple.word"),