public class PsiCommentManipulator extends AbstractElementManipulator<PsiComment>
Constructor and Description |
---|
PsiCommentManipulator() |
Modifier and Type | Method and Description |
---|---|
TextRange |
getRangeInElement(PsiComment element)
Returns value text range.
|
PsiComment |
handleContentChange(PsiComment psiComment,
TextRange range,
java.lang.String newContent)
Changes the element's text to the given new text.
|
handleContentChange
public PsiComment handleContentChange(PsiComment psiComment, TextRange range, java.lang.String newContent) throws IncorrectOperationException
ElementManipulator
psiComment
- element to be changedrange
- range within the elementnewContent
- new element textIncorrectOperationException
- if something goes wrongpublic TextRange getRangeInElement(PsiComment element)
ElementManipulator
getRangeInElement
in interface ElementManipulator<PsiComment>
getRangeInElement
in class AbstractElementManipulator<PsiComment>