PageRenderTime 55ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-3-pre5/bsh/commands/setNameCompletion.bsh

#
Unknown | 21 lines | 18 code | 3 blank | 0 comment | 0 complexity | efff608e57aebc0e274723e078d60beb MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  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. bsh.help.setNameCompletion= "usage: setNameCompletion( boolean )";
  11. /**
  12. */
  13. void setNameCompletion( boolean bool )
  14. {
  15. if ( bool == false )
  16. if ( bsh.console != void )
  17. bsh.console.setNameCompletion( null );
  18. }