Package org.apache.karaf.shell.console.completer

Examples of org.apache.karaf.shell.console.completer.FileCompleter


    }

    @Activate
    void activate() {
        activateComponent();
        bindCompleter(new FileCompleter(null));
    }
View Full Code Here


        return new ArchetypeGenerateAction(archetypeService.get());
    }

    @Activate
    void activate() {
        bindOptionalCompleter("-d", new FileCompleter(null));
        activateComponent();
    }
View Full Code Here

    private Completer getDefaultCompleter(Field field) {
        Completer completer = null;
        Class<?> type = field.getType();
        if (type.isAssignableFrom(File.class)) {
            completer = new FileCompleter(null);
        } 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<String>();
            for (Object o : EnumSet.allOf((Class<Enum>) type)) {
View Full Code Here

                    }
                } else {
                    Field field = arguments.get(i);
                    Class<?> type = field.getType();
                    if (type.isAssignableFrom(File.class)) {
                        argCompleter = new FileCompleter(null);
                    } else if (type.isAssignableFrom(Boolean.class) || type.isAssignableFrom(boolean.class)) {
                        argCompleter = new StringsCompleter(new String[] {"false", "true"}, false);
                    } else if (type.isAssignableFrom(Enum.class)) {
                        Set<String> values = new HashSet<String>();
                        for (Object o : EnumSet.allOf((Class<Enum>) type)) {
View Full Code Here

TOP

Related Classes of org.apache.karaf.shell.console.completer.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.