public class CommentByLineCommentHandler extends MultiCaretCodeInsightActionHandler
| Constructor and Description |
|---|
CommentByLineCommentHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
doDefaultCommenting(com.intellij.codeInsight.generation.CommentByLineCommentHandler.Block block) |
void |
invoke(Project project,
Editor editor,
Caret caret,
PsiFile file)
Invoked for each caret in editor (in top-to-bottom order).
|
static void |
markInjectedFileUnsuitableForLineComment(PsiFile file)
Disable line commenting in an injected file making this action operate on its host file instead.
|
void |
postInvoke()
Invoked after processing all carets.
|
public static void markInjectedFileUnsuitableForLineComment(PsiFile file)
file - injected file where line comment action shouldn't be availablepublic void invoke(Project project, Editor editor, Caret caret, PsiFile file)
MultiCaretCodeInsightActionHandlerproject 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 MultiCaretCodeInsightActionHandlerpublic void postInvoke()
MultiCaretCodeInsightActionHandlerpostInvoke in class MultiCaretCodeInsightActionHandlerpublic void doDefaultCommenting(com.intellij.codeInsight.generation.CommentByLineCommentHandler.Block block)