Package org.apache.karaf.shell.support.completers

Examples of org.apache.karaf.shell.support.completers.FileCompleter


            type = genericType.getActualTypeArgument(0).getRawClass();
        }
        if (type.isAssignableFrom(URI.class)) {
            completer = new UriCompleter();
        } else if (type.isAssignableFrom(File.class)) {
            completer = new FileCompleter();
        } else if (type.isAssignableFrom(Boolean.class) || type.isAssignableFrom(boolean.class)) {
            completer = new StringsCompleter(new String[] {"false", "true"}, false);
        } else if (type.isAssignableFrom(Enum.class)) {
            Set<String> values = new HashSet<>();
            for (Object o : EnumSet.allOf((Class<Enum>) type)) {
View Full Code Here


        // Completers
        Completer completer = new CommandsCompleter(factory);
        reader.addCompleter(new CompleterAsCompletor(this, completer));
        registry.register(completer);
        registry.register(new CommandNamesCompleter());
        registry.register(new FileCompleter());
        registry.register(new UriCompleter());
        registry.register(new FileOrUriCompleter());

        // Session
        session = processor.createSession(in != null ? console : null, out, err);
View Full Code Here

TOP

Related Classes of org.apache.karaf.shell.support.completers.FileCompleter

Copyright © 2018 www.massapicom. 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.