public class TextTransformContext extends TransformContext
Constructor and Description |
---|
TextTransformContext(TextTransformAdapter adapter,
Transform transform,
Violation violation,
Location location) |
Modifier and Type | Method and Description |
---|---|
void |
addEdit(javax.swing.undo.UndoableEdit edit)
Adds an edit of the text buffer to the sequence of edits which will
comprise the tranform.
|
TextTransformAdapter |
getAdapter()
Gets the transform adapter for the transform of this context.
|
TextBuffer |
getBuffer()
Gets the text buffer to be transformed.
|
TextNode |
getTextNode()
Gets the text node to be transformed.
|
void |
setSelection(int offset) |
void |
setSelection(int offset,
int endOffset) |
void |
setSelection(Location location) |
addHighlight, addRemovedHighlight, getAttribute, getDefaultTransform, getFocusLocation, getIdeContext, getLocation, getModel, getModelAdapter, getNode, getParameter, getParameterCount, getParameterName, getParameterValue, getParameterValue, getPredecessorApplyData, getProject, getRule, getSerialNumber, getTransform, getTransform, getTransformCount, getVariation, getViolation, getWorkspace, invokeLater, setAttribute, setPredecessorApplyData, setSelection, setSelection, setSelection, setSelection, toString
public TextTransformContext(TextTransformAdapter adapter, Transform transform, Violation violation, Location location)
public TextTransformAdapter getAdapter()
TransformContext
getAdapter
in class TransformContext
public TextNode getTextNode()
public TextBuffer getBuffer()
java.lang.IllegalStateException
- if the transform is not active.public void addEdit(javax.swing.undo.UndoableEdit edit)
java.lang.IllegalStateException
- if the transform is not active.public void setSelection(int offset)
public void setSelection(int offset, int endOffset)
public void setSelection(Location location)