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.
|
handleContentChangepublic PsiComment handleContentChange(PsiComment psiComment, TextRange range, java.lang.String newContent) throws IncorrectOperationException
ElementManipulatorpsiComment - element to be changedrange - range within the elementnewContent - new element textIncorrectOperationException - if something goes wrongpublic TextRange getRangeInElement(PsiComment element)
ElementManipulatorgetRangeInElement in interface ElementManipulator<PsiComment>getRangeInElement in class AbstractElementManipulator<PsiComment>