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