public class PlainFileManipulator extends AbstractElementManipulator<PsiPlainTextFile>
Constructor and Description |
---|
PlainFileManipulator() |
Modifier and Type | Method and Description |
---|---|
PsiPlainTextFile |
handleContentChange(PsiPlainTextFile file,
TextRange range,
java.lang.String newContent)
Changes the element's text to the given new text.
|
getRangeInElement, handleContentChange
public PsiPlainTextFile handleContentChange(PsiPlainTextFile file, TextRange range, java.lang.String newContent) throws IncorrectOperationException
ElementManipulator
file
- element to be changedrange
- range within the elementnewContent
- new element textIncorrectOperationException
- if something goes wrong