Revision: 5564 http://jnode.svn.sourceforge.net/jnode/?rev=5564&view=rev Author: crawley Date: 2009-06-08 13:48:09 +0000 (Mon, 08 Jun 2009)
Log Message: ----------- Command name completions in Bjorne now include relevant Bjorne aliases. Modified Paths: -------------- trunk/shell/src/shell/org/jnode/shell/bjorne/BjorneCompleter.java Modified: trunk/shell/src/shell/org/jnode/shell/bjorne/BjorneCompleter.java =================================================================== --- trunk/shell/src/shell/org/jnode/shell/bjorne/BjorneCompleter.java 2009-06-08 13:36:02 UTC (rev 5563) +++ trunk/shell/src/shell/org/jnode/shell/bjorne/BjorneCompleter.java 2009-06-08 13:48:09 UTC (rev 5564) @@ -132,7 +132,7 @@ } private void completeCommandWord(CompletionInfo completions, CommandShell shell, BjorneToken token) { - // FIXME ... do aliases and functions ... + // FIXME ... do functions ... for (String builtinName : BjorneInterpreter.BUILTINS.keySet()) { if (builtinName.startsWith(token.text)) { completions.addCompletion(builtinName); @@ -141,6 +141,9 @@ ArgumentCompleter ac = new ArgumentCompleter( new AliasArgument("?", Argument.MANDATORY, null), token); ac.complete(completions, shell); + ac = new ArgumentCompleter( + new BjorneAliasNameArgument("?", context, Argument.MANDATORY, null), token); + ac.complete(completions, shell); } public void setEndToken(BjorneToken endToken) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Jnode-svn-commits mailing list Jnode-svn-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jnode-svn-commits