[New] Added Command.validateAndDoCommand()
This commit is contained in:
parent
5c045129ab
commit
15a84b99ce
|
@ -299,4 +299,12 @@ public abstract class Command implements Restrictable {
|
||||||
public void undo() {
|
public void undo() {
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Simple method to call {@link #validate()} and {@link #doCommand()} in a single call
|
||||||
|
*/
|
||||||
|
public void validateAndDoCommand() {
|
||||||
|
validate();
|
||||||
|
doCommand();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue