public class CommentByBlockCommentHandler extends MultiCaretCodeInsightActionHandler
Constructor and Description |
---|
CommentByBlockCommentHandler() |
Modifier and Type | Method and Description |
---|---|
void |
commentRange(int startOffset,
int endOffset,
java.lang.String commentPrefix,
java.lang.String commentSuffix,
Commenter commenter) |
static Commenter |
getCommenter(PsiFile file,
Editor editor,
Language lineStartLanguage,
Language lineEndLanguage) |
void |
invoke(Project project,
Editor editor,
Caret caret,
PsiFile file)
Invoked for each caret in editor (in top-to-bottom order).
|
void |
uncommentRange(TextRange range,
java.lang.String commentPrefix,
java.lang.String commentSuffix,
Commenter commenter) |
postInvoke
public void invoke(Project project, Editor editor, Caret caret, PsiFile file)
MultiCaretCodeInsightActionHandler
project
value is the same for all carets, editor
and file
values can be different in presence of multi-root PSI and injected fragments. For injected fragments
caret instance will belong to corresponding injected editor.invoke
in class MultiCaretCodeInsightActionHandler
public static Commenter getCommenter(PsiFile file, Editor editor, Language lineStartLanguage, Language lineEndLanguage)
public void commentRange(int startOffset, int endOffset, java.lang.String commentPrefix, java.lang.String commentSuffix, Commenter commenter)