Added 3 options to spellchecker: whether inspect code/literals/comments

This commit is contained in:
Oleg Shpynov
2009-09-29 21:45:36 +04:00
parent ceab2aa9ca
commit a1e46a7c5b
2 changed files with 6 additions and 3 deletions
@@ -229,9 +229,9 @@ public class SpellCheckingInspection extends LocalInspectionTool {
@Override
public JComponent createOptionsPanel() {
final Box verticalBox = Box.createVerticalBox();
verticalBox.add(new SingleCheckboxOptionsPanel("Process code", this, "processCode"));
verticalBox.add(new SingleCheckboxOptionsPanel("Process literals", this, "processLiterals"));
verticalBox.add(new SingleCheckboxOptionsPanel("Process comments", this, "processComments"));
verticalBox.add(new SingleCheckboxOptionsPanel(SpellCheckerBundle.message("process.code"), this, "processCode"));
verticalBox.add(new SingleCheckboxOptionsPanel(SpellCheckerBundle.message("process.literals"), this, "processLiterals"));
verticalBox.add(new SingleCheckboxOptionsPanel(SpellCheckerBundle.message("process.comments"), this, "processComments"));
final JPanel panel = new JPanel(new BorderLayout());
panel.add(verticalBox, BorderLayout.NORTH);
return panel;
@@ -22,4 +22,7 @@ add.new.word=Add new word
entered.word.0.is.mixed.cased.you.must.enter.simple.word=Entered word {0} is mixed cased. You must enter simple word
entered.word.0.is.correct.you.no.need.to.add.this.in.list=Entered word {0} is correct. You no need to add this in list.
no.suggestions=<no suggestion>
process.code=Process code:
process.literals=Process literals:
process.comments=Process comments: