@@ -0,0 +1,2382 @@
+/**%0D%0A * Copyright (c) 2008, Swedish Institute of Computer Science.%0D%0A * All rights reserved.%0D%0A *%0D%0A * Redistribution and use in source and binary forms, with or without%0D%0A * modification, are permitted provided that the following conditions are met:%0D%0A * 1. Redistributions of source code must retain the above copyright%0D%0A *    notice, this list of conditions and the following disclaimer.%0D%0A * 2. Redistributions in binary form must reproduce the above copyright%0D%0A *    notice, this list of conditions and the following disclaimer in the%0D%0A *    documentation and/or other materials provided with the distribution.%0D%0A * 3. Neither the name of the Institute nor the names of its contributors%0D%0A *    may be used to endorse or promote products derived from this software%0D%0A *    without specific prior written permission.%0D%0A *%0D%0A * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS %60%60AS IS'' AND%0D%0A * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE%0D%0A * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE%0D%0A * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE%0D%0A * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL%0D%0A * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS%0D%0A * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)%0D%0A * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT%0D%0A * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY%0D%0A * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF%0D%0A * SUCH DAMAGE.%0D%0A *%0D%0A * This file is part of MSPSim.%0D%0A *%0D%0A * $Id$%0D%0A *%0D%0A * -----------------------------------------------------------------%0D%0A *%0D%0A * BasicCommand%0D%0A *%0D%0A * Author  : Joakim Eriksson, Niclas Finne%0D%0A * Created : Mon Feb 11 21:28:00 2008%0D%0A * Updated : $Date: 2007/10/21 21:17:34 $%0D%0A *           $Revision: 1.3 $%0D%0A */%0D%0A%0D%0Apackage se.sics.mspsim.util;%0D%0A%0D%0Apublic abstract class BasicCommand implements Command %7B%0D%0A%0D%0A  private String argumentHelp;%0D%0A  private String commandHelp;%0D%0A%0D%0A  public BasicCommand(String cmdHelp, String argHelp) %7B%0D%0A    commandHelp = cmdHelp;%0D%0A    argumentHelp = argHelp;%0D%0A  %7D%0D%0A  %0D%0A  public String getArgumentHelp(CommandContext context) %7B%0D%0A    return argumentHelp;%0D%0A  %7D%0D%0A%0D%0A  public String getCommandHelp(CommandContext context) %7B%0D%0A    return commandHelp;%0D%0A  %7D%0D%0A%0D%0A%7D%0D%0A

Added an abstract basic command for commands with static help texts.