Package org.apache.geronimo.gshell.console.completer

Examples of org.apache.geronimo.gshell.console.completer.StringsCompleter.complete()


    }

    public int complete(final String buffer, final int cursor, final List candidates) {
        Collection<String> artifacts = getComponentsAndAssemblies();
        StringsCompleter delegate = new StringsCompleter(artifacts);
        return delegate.complete(buffer, cursor, candidates);
    }

    protected Set<String> getComponentsAndAssemblies() {
        try {
            Set<String> artifacts = new HashSet<String>();
View Full Code Here


        this.featuresRegistry = featuresRegistry;
    }

    public int complete(final String buffer, final int cursor, final List candidates) {
        StringsCompleter delegate = new StringsCompleter(featuresRegistry.getRepositories().keySet());
        return delegate.complete(buffer, cursor, candidates);
    }

}
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.