/jEdit/tags/jedit-4-1-pre5/bsh/commands/setNameCompletion.bsh
Unknown | 20 lines | 17 code | 3 blank | 0 comment | 0 complexity | 2d9bff91ad6e8833a0fa7b9b1dff610e 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
- /**
- Allow users to turn off name completion.
- <p>
- Turn name completion in the GUI console on or off.
- Name competion is on by default. Explicitly setting it to true however can
- be used to prompt bsh to read the classpath and provide immediate feedback.
- (Otherwise this may happen behind the scenes the first time name completion
- is attempted). Setting it to false will disable name completion.
- */
- bsh.help.setNameCompletion= "usage: setNameCompletion( boolean )";
- /**
- */
- void setNameCompletion( boolean bool ) {
- if ( bool == false )
- if ( bsh.console != void )
- bsh.console.setNameCompletion( null );
- }