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