Class CodeSelector
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.gui.CodeSelector
-
public class CodeSelector extends java.lang.Object
Helper class to select a code.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JTextArea
editor
Editor.private CodeSelectorPresentation
pModel
Presentation model.
-
Constructor Summary
Constructors Constructor Description CodeSelector(java.lang.Object node, javax.swing.JTextArea editor, java.util.Collection<java.lang.Integer> lines2position)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
select()
Set selection.
-
-
-
Field Detail
-
editor
private final javax.swing.JTextArea editor
Editor.
-
pModel
private final CodeSelectorPresentation pModel
Presentation model.
-
-
Constructor Detail
-
CodeSelector
public CodeSelector(java.lang.Object node, javax.swing.JTextArea editor, java.util.Collection<java.lang.Integer> lines2position)
Constructor.- Parameters:
node
- ast node.editor
- text area editor.lines2position
- positions of lines.
-
-
Method Detail
-
select
public void select()
Set selection.
-
-