Package org.jitterbit.cli

Examples of org.jitterbit.cli.CommandExecutor


        commands.add(new TargetNodePathCommand(page, "maptarget", new OpenFormulaBuilderExecutor(page)));
        commands.add(new AddMappingCommand(page));
    }

    private void addDeleteMappingsCommands() {
        CommandExecutor delete = new DeleteMappingExecutor(page);
        for (String name : new String[] { "delete mapping", "unmap"}) {
            commands.add(new TargetNodePathCommand(page, name, delete));
        }
        CommandExecutor deleteAll = new DeleteAllMappingsExecutor(page);
        for (String name : new String[] { "del all mappings", "delete all mappings"}) {
            commands.add(CommandFactory.newCommand(name, deleteAll));
        }
    }
View Full Code Here


public final class ActionCommand implements Command {
   
    private final Command impl;
   
    public ActionCommand(final String name, final Action action) {
        impl = new NoArgumentCommand(name, new CommandExecutor() {
           
            @Override
            public void execute(String[] params) throws CommandException {
                if (action.isEnabled()) {
                    ActionUtils.run(action, this, name);
View Full Code Here

        add(newCommand("preferences [{0}]...", new OpenPreferencesExecutor(appWin)));
        add(switchView());
    }

    private Command switchView() {
        return new SingleArgumentCommand("view", new CommandExecutor() {

            @Override
            public void execute(String[] params) {
                appWin.getViewManager().showView(params[0]);
            }
View Full Code Here

   
    private static final class Converter implements Function<ConsoleLauncher, Command> {

        @Override
        public Command apply(final ConsoleLauncher launcher) {
            return CommandFactory.newCommand(launcher.getName().toLowerCase(), new CommandExecutor() {
               
                @Override
                public void execute(String[] params) throws CommandException {
                    launcher.launch();
                }
View Full Code Here

            page.addToolbarButton(b);
        }
    }

    private void installCommands(final IntegrationEntityPage page) {
        commands.addCommand(CommandFactory.newCommand("used by", new CommandExecutor() {

            @Override
            public void execute(String[] params) throws CommandException {
                page.showDependentObjects();
            }
        }));
        commands.addCommand(CommandFactory.newCommand("focus", new CommandExecutor() {

            @Override
            public void execute(String[] params) throws CommandException {
                page.restoreFocus(0);
            }
View Full Code Here

TOP

Related Classes of org.jitterbit.cli.CommandExecutor

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.