Package org.jnode.shell

Examples of org.jnode.shell.ArgumentCompleter.complete()


                    // Ignore for purposes of completion
                    break;
                case TOK_ASSIGNMENT:
                    ArgumentCompleter ac = new ArgumentCompleter(
                            new AssignmentArgument("?", context, Argument.MANDATORY, null), token);
                    ac.complete(completions, shell);
                    break;
                case TOK_FOR_WORD:
                case TOK_FILE_NAME:
                    // Complete against the file system namespace
                    ac = new ArgumentCompleter(
View Full Code Here


                case TOK_FOR_WORD:
                case TOK_FILE_NAME:
                    // Complete against the file system namespace
                    ac = new ArgumentCompleter(
                            new FileArgument("?", Argument.MANDATORY, null), token);
                    ac.complete(completions, shell);
                    break;
                case TOK_COMMAND_NAME:
                    // Complete against the command/alias/function namespaces
                    completeCommandWord(completions, shell, token);
                    break;
View Full Code Here

                completions.addCompletion(builtinName);
            }
        }
        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);
    }
View Full Code Here

        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.endToken = endToken;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.