mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
spellchecker settings: (minor) customize decorator
GitOrigin-RevId: 1e1dc86602c1c8dabcf220a11a06590d26177aa4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3bbf5a50e3
commit
57cc7b140d
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user