public interface SelfManagingCommenter<T extends CommenterDataHolder>
Modifier and Type | Field and Description |
---|---|
static CommenterDataHolder |
EMPTY_STATE |
Modifier and Type | Method and Description |
---|---|
void |
commentLine(int line,
int offset,
Document document,
T data) |
T |
createBlockCommentingState(int selectionStart,
int selectionEnd,
Document document,
PsiFile file) |
T |
createLineCommentingState(int startLine,
int endLine,
Document document,
PsiFile file) |
java.lang.String |
getBlockCommentPrefix(int selectionStart,
Document document,
T data) |
TextRange |
getBlockCommentRange(int selectionStart,
int selectionEnd,
Document document,
T data) |
java.lang.String |
getBlockCommentSuffix(int selectionEnd,
Document document,
T data) |
java.lang.String |
getCommentPrefix(int line,
Document document,
T data) |
TextRange |
insertBlockComment(int startOffset,
int endOffset,
Document document,
T data) |
boolean |
isLineCommented(int line,
int offset,
Document document,
T data) |
void |
uncommentBlockComment(int startOffset,
int endOffset,
Document document,
T data) |
void |
uncommentLine(int line,
int offset,
Document document,
T data) |
static final CommenterDataHolder EMPTY_STATE
T createLineCommentingState(int startLine, int endLine, Document document, PsiFile file)
T createBlockCommentingState(int selectionStart, int selectionEnd, Document document, PsiFile file)
TextRange getBlockCommentRange(int selectionStart, int selectionEnd, Document document, T data)
java.lang.String getBlockCommentPrefix(int selectionStart, Document document, T data)
java.lang.String getBlockCommentSuffix(int selectionEnd, Document document, T data)
void uncommentBlockComment(int startOffset, int endOffset, Document document, T data)