public class OverwriteCharEditDataOperation extends CharEditDataOperation
codeArea
Constructor and Description |
---|
OverwriteCharEditDataOperation(org.exbin.deltahex.swing.CodeArea coreArea,
long startPosition) |
Modifier and Type | Method and Description |
---|---|
void |
appendEdit(char value)
Appends next character value in editing action sequence.
|
void |
dispose()
Performs dispose of the operation.
|
void |
execute()
Performs operation on given document.
|
CodeAreaOperation |
executeWithUndo()
Performs operation on given document and returns undo operation.
|
CodeAreaOperation[] |
generateUndo()
Generates undo operation for combined editing action.
|
long |
getLength() |
long |
getStartPosition() |
CodeAreaOperationType |
getType()
Returns type of the operation.
|
getCaption, getCodeArea
public OverwriteCharEditDataOperation(org.exbin.deltahex.swing.CodeArea coreArea, long startPosition)
public CodeAreaOperationType getType()
CodeAreaOperation
getType
in class CodeAreaOperation
public void execute() throws org.exbin.deltahex.operation.BinaryDataOperationException
CodeAreaOperation
execute
in interface org.exbin.deltahex.operation.BinaryDataOperation
execute
in class CodeAreaOperation
org.exbin.deltahex.operation.BinaryDataOperationException
- for operation handling issuespublic CodeAreaOperation executeWithUndo() throws org.exbin.deltahex.operation.BinaryDataOperationException
CodeAreaOperation
executeWithUndo
in interface org.exbin.deltahex.operation.BinaryDataOperation
executeWithUndo
in class CodeAreaOperation
org.exbin.deltahex.operation.BinaryDataOperationException
- for operation handling issuespublic void appendEdit(char value)
CharEditDataOperation
appendEdit
in class CharEditDataOperation
value
- characterpublic CodeAreaOperation[] generateUndo()
CharEditDataOperation
generateUndo
in class CharEditDataOperation
public long getStartPosition()
public long getLength()
public void dispose() throws org.exbin.deltahex.operation.BinaryDataOperationException
CodeAreaOperation
dispose
in interface org.exbin.deltahex.operation.BinaryDataOperation
dispose
in class CodeAreaOperation
org.exbin.deltahex.operation.BinaryDataOperationException
- for operation handling issues