public class OtCommand extends Object
Modifier and Type | Field and Description |
---|---|
String |
author |
ICommand |
command |
long |
contentVersion |
boolean |
local |
boolean |
reverted |
Constructor and Description |
---|
OtCommand() |
Modifier and Type | Method and Description |
---|---|
void |
execute(Document document)
Executes the command against the given document.
|
void |
redo(Document document)
Invokes 'redo' on the underlying ICommand but only if it hasn't already been reverted.
|
void |
undo(Document document)
Invokes 'undo' on the underlying ICommand but only if it hasn't already been reverted.
|
public String author
public long contentVersion
public ICommand command
public boolean local
public boolean reverted
public void execute(Document document)
document
- public void undo(Document document)
document
- public void redo(Document document)
document
- Copyright © 2021 Red Hat. All rights reserved.