public class ToggleCommentAction
extends Action
Class implementing the comment toggle action.
Toggles the //
comments for the actual selection.
If all lines of the selections starts with //
(trailing white spaces are ignored) the //
comment is removed from all lines.
If there is at least one line NOT starting with //
(trailing white spaces are ignored), then
//
is inserted at the very beginning of each line.
Constructor and Description |
---|
ToggleCommentAction()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Toggles the
// comments for the actual selection. |
void |
runWithEvent(Event event) |