public void importCommands(String name){
  if (importedCommands == null)   importedCommands=new Vector();
  name=name.replace('.','/');
  if (!name.startsWith("/"))   name="/" + name;
  if (name.length() > 1 && name.endsWith("/"))   name=name.substring(0,name.length() - 1);
  if (importedCommands.contains(name))   importedCommands.remove(name);
  importedCommands.addElement(name);
  nameSpaceChanged();
}

public void importCommands ( String name ) { if ( importedCommands == null ) importedCommands = new Vector ( ) ; name = name . replace ( '.' , '/' ) ; if ( ! name . startsWith ( "/" ) ) name = "/" + name ; if ( name . length ( ) > 1 && name . endsWith ( "/" ) ) name = name . substring ( 0 , name . length ( ) - 1 ) ; if ( importedCommands . contains ( name ) ) importedCommands . remove ( name ) ; importedCommands . addElement ( name ) ; nameSpaceChanged ( ) ; }
import scripted or compiled beanshell commands in the following package in the classpath . you may use either " / " path or " . " package notation . e . g . importcommands ( " / bsh / commands " ) or importcommands ( " bsh . commands " ) are equivalent . if a relative path style specifier is used then it is made into an absolute path by prepending " / " .
