Package org.exbin.bined.operation.swing
Class RemoveDataOperation
- java.lang.Object
-
- org.exbin.bined.operation.swing.CodeAreaOperation
-
- org.exbin.bined.operation.swing.RemoveDataOperation
-
- All Implemented Interfaces:
org.exbin.bined.operation.BinaryDataOperation
@ParametersAreNonnullByDefault public class RemoveDataOperation extends CodeAreaOperation
Operation for deleting child block.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.exbin.bined.operation.swing.CodeAreaOperation
CodeAreaOperation.ExecutionType
-
-
Field Summary
-
Fields inherited from class org.exbin.bined.operation.swing.CodeAreaOperation
backPosition, codeArea
-
-
Constructor Summary
Constructors Constructor Description RemoveDataOperation(org.exbin.bined.swing.CodeAreaCore codeArea, long position, int codeOffset, long length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Performs operation on given document.CodeAreaOperation
executeWithUndo()
Performs operation on given document and returns undo operation.CodeAreaOperationType
getType()
Returns type of the operation.-
Methods inherited from class org.exbin.bined.operation.swing.CodeAreaOperation
dispose, execute, getBackPosition, getCaption, getCodeArea, setBackPosition
-
-
-
-
Method Detail
-
getType
@Nonnull public CodeAreaOperationType getType()
Description copied from class:CodeAreaOperation
Returns type of the operation.- Specified by:
getType
in classCodeAreaOperation
- Returns:
- operation type
-
execute
public void execute() throws org.exbin.bined.operation.BinaryDataOperationException
Description copied from class:CodeAreaOperation
Performs operation on given document.- Specified by:
execute
in interfaceorg.exbin.bined.operation.BinaryDataOperation
- Overrides:
execute
in classCodeAreaOperation
- Throws:
org.exbin.bined.operation.BinaryDataOperationException
- for operation handling issues
-
executeWithUndo
@Nullable public CodeAreaOperation executeWithUndo() throws org.exbin.bined.operation.BinaryDataOperationException
Description copied from class:CodeAreaOperation
Performs operation on given document and returns undo operation.- Specified by:
executeWithUndo
in interfaceorg.exbin.bined.operation.BinaryDataOperation
- Overrides:
executeWithUndo
in classCodeAreaOperation
- Returns:
- undo operation or null if not available
- Throws:
org.exbin.bined.operation.BinaryDataOperationException
- for operation handling issues
-
-