public class FileOpenCommand extends java.lang.Object implements Command, UndoContextAware
| Constructor and Description |
|---|
FileOpenCommand(ConsoleEditor editor,
java.lang.String fileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes the command.
|
void |
setUndoContext(UndoContext undoContext)
Sets the
UndoContext. |
public FileOpenCommand(ConsoleEditor editor, java.lang.String fileName)
public void execute()
Commandpublic void setUndoContext(UndoContext undoContext)
UndoContext.setUndoContext in interface UndoContextAwareundoContext - Copyright © 2018. All Rights Reserved.