public class TextTransformAdapter extends TransformAdapter
TransformAdapter for transforms which modify text buffers directly.TransformAdapter.ConstructRegion, TransformAdapter.LocationRegion, TransformAdapter.Region| Constructor and Description |
|---|
TextTransformAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransform(TransformContext context)
Begins a transform of this type.
|
void |
cancelTransform(TransformContext context)
Cancels a transform of this type.
|
protected TransformContext |
createContext(TransformContext.Shape shape,
Transform transform,
Violation violation,
Location location,
java.net.URL pendingLocation,
Project pendingProject,
Workspace pendingWorkspace)
Creates a context for a transform over a violation at a location.
|
protected UndoableEditCommand |
createUndoableEditCommand(TextTransformContext context) |
void |
endTransform(TransformContext context)
Ends a transform of this type.
|
protected TextBuffer |
getBuffer() |
addHighlight, addRemovedHighlight, beginTransform, beginTransformSequence, cancelTransformSequence, createContext, endTransformSequence, equals, getDeferredCommands, getHighlightRegions, getSelection, hashCode, invokeLater, isTransformable, isTransformable, makeTransformable, makeWritable, newCreateContext, newCreateContext, newDeleteContext, newDeleteContext, newMoveContext, newMoveContext, newMoveContext, newReadContext, newReadContext, newWriteContext, newWriteContext, newWriteContext, setPredecessorApplyData, setSelection, setSelectionprotected TransformContext createContext(TransformContext.Shape shape, Transform transform, Violation violation, Location location, java.net.URL pendingLocation, Project pendingProject, Workspace pendingWorkspace)
TransformAdaptercreateContext in class TransformAdapterpublic void beginTransform(TransformContext context)
CommandProcessor.beginTrans(java.lang.String) has been
invoked to start a command processor batch operation;
TransformAdapter.beginTransformSequence(oracle.jdeveloper.audit.transform.TransformSequenceContext) method has been invoked;
The TextTransformAdapter implementation of this method acquires
and write locks the text buffer containing the text to transform.
beginTransform in class TransformAdaptercontext - protected UndoableEditCommand createUndoableEditCommand(TextTransformContext context)
protected TextBuffer getBuffer()
public void endTransform(TransformContext context) throws java.lang.Exception
TransformAdapter.beginTransform(oracle.jdeveloper.audit.transform.TransformContext) has been invoked (its preconditions still
hold);
The TextTransformAdapter implementation of this method creates
an UndoableEditCommand for the edits, invokes it, and unlocks and
releases the text buffer.
endTransform in class TransformAdaptercontext - A transform context created by this adapter.java.lang.Exceptionpublic void cancelTransform(TransformContext context) throws java.lang.Exception
TransformAdapter.beginTransform(oracle.jdeveloper.audit.transform.TransformContext) has been invoked (its preconditions still
hold);
TransformAdapter.endTransform(oracle.jdeveloper.audit.transform.TransformContext) method has thrown an
exception.
The TextTransformAdapter implementation of this method unlocks and
releases the text buffer.
cancelTransform in class TransformAdaptercontext - A transform context created by this type.java.lang.Exception