question: 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 ( ) ; }
target:  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 "/".