Class TextChange
- java.lang.Object
-
- ca.cgjennings.apps.arkham.plugins.typescript.TextSpan
-
- ca.cgjennings.apps.arkham.plugins.typescript.TextChange
-
public class TextChange extends TextSpan
Describes a single contiguous text edit as a range and replacement string. This is used to describe the changes that should be made to a source file.- Author:
- Chris Jennings
-
-
Constructor Summary
Constructors Constructor Description TextChange(int start, int length, java.lang.String newText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(CodeEditorBase editor)
Applies the change to an open editor.java.lang.String
apply(java.lang.String text)
Applies the change to a string containing the original text.java.lang.String
toString()
-
-
-
Method Detail
-
apply
public void apply(CodeEditorBase editor)
Applies the change to an open editor.
-
apply
public java.lang.String apply(java.lang.String text)
Applies the change to a string containing the original text.
-
-