public boolean addCommand(String commandName, Command command, boolean overwrite) { if (overwrite || !commands.contains(commandName)) { commands.add(commandName, command); return true; } return false; }
public CommandLineMode(EditorAdaptor editorAdaptor) { super(editorAdaptor); commands = new EvaluatorMapping(); commands.addAll(coreCommands); }