public class ToggleCommentsAction extends DefaultSyntaxAction
Modifier and Type | Field and Description |
---|---|
protected java.util.regex.Pattern |
lineCommentPattern |
protected java.lang.String |
lineCommentStart |
ACTION_PREFIX, LARGE_ICONS_LOC_PREFIX, SMALL_ICONS_LOC_PREFIX
Constructor and Description |
---|
ToggleCommentsAction()
creates new JIndentAction.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(javax.swing.text.JTextComponent target,
SyntaxDocument sDoc,
int dot,
java.awt.event.ActionEvent e)
Convenience method that will be called if the Action is performed on a
JTextComponent.
|
void |
setLineComments(java.lang.String value) |
actionPerformed, config, setLargeIcon, setMenuText, setSmallIcon, setToolTip, toString
augmentList, getFocusedComponent, getTextComponent
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected java.lang.String lineCommentStart
protected java.util.regex.Pattern lineCommentPattern
public ToggleCommentsAction()
public void actionPerformed(javax.swing.text.JTextComponent target, SyntaxDocument sDoc, int dot, java.awt.event.ActionEvent e)
actionPerformed
in class DefaultSyntaxAction
e
- target
- (non-null JTextComponent from Action.getSourcesDoc
- (SyntaxDOcument of the text component, could be null)dot
- (position of caret at text document)public void setLineComments(java.lang.String value)