home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Freeware 25 / FreelogHS25.iso / Dessin / ArtOfIllusion2.2.1 / ArtOfIllusion.jar / bsh / commands / setNameCompletion.bsh < prev    next >
Text File  |  2005-05-23  |  618b  |  22 lines

  1. /**
  2.     Allow users to turn off name completion.
  3.     <p>
  4.     Turn name completion in the GUI console on or off.
  5.     Name competion is on by default.  Explicitly setting it to true however can
  6.     be used to prompt bsh to read the classpath and provide immediate feedback.
  7.     (Otherwise this may happen behind the scenes the first time name completion
  8.     is attempted).  Setting it to false will disable name completion.
  9. */
  10.  
  11. bsh.help.setNameCompletion= "usage: setNameCompletion( boolean )";
  12.  
  13. /**
  14. */
  15. void setNameCompletion( boolean bool ) 
  16. {
  17.     if ( bool == false )
  18.         if ( bsh.console != void )
  19.             bsh.console.setNameCompletion( null );
  20. }
  21.  
  22.