avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: avalon-phoenix/src/bsh printBlocks.bsh
Date Sat, 01 Mar 2003 17:42:53 GMT
hammant     2003/03/01 09:42:53

  Added:       src/bsh  printBlocks.bsh
  Log:
  reworked bsh command
  
  Revision  Changes    Path
  1.1                  avalon-phoenix/src/bsh/printBlocks.bsh
  
  Index: printBlocks.bsh
  ===================================================================
  
  bsh.help.printBlocks = "usage: printBlocks( appName ), prints a blocks for an app";
  
  /*
  	By Paul Hammant : Specifically for Phoenix
  */
  printBlocks( String appName ) {
  
      kernel = this.interpreter.get("phoenix-kernel");
      String[] blocks = kernel.getApplication(appName).getBlockNames();
      print(appName + " has " + blocks.length + " blocks..");
      for (int i = 0; i < blocks.length; i++) {
        print(i + " " + blocks[i]);
      }
      
  }
  
  printBlocks( int appNo ) {
      kernel = this.interpreter.get("phoenix-kernel");
      String[] apps = kernel.getApplicationNames();
      printBlocks(apps[appNo]);
  }
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message