Examples of Command


Examples of com.mucommander.command.Command

        // Initialises trash management.
        DesktopManager.setTrashProvider(new OSXTrashProvider());

        // Registers OS X specific commands.
        try {
            CommandManager.registerDefaultCommand(new Command(CommandManager.FILE_OPENER_ALIAS,  OPENER_COMMAND, CommandType.SYSTEM_COMMAND, null));
            CommandManager.registerDefaultCommand(new Command(CommandManager.URL_OPENER_ALIAS,   OPENER_COMMAND, CommandType.SYSTEM_COMMAND, null));
            CommandManager.registerDefaultCommand(new Command(CommandManager.FILE_MANAGER_ALIAS, FINDER_COMMAND, CommandType.SYSTEM_COMMAND, FINDER_NAME));
        }
        catch(CommandException e) {throw new DesktopInitialisationException(e);}
    }
View Full Code Here

Examples of com.netflix.genie.common.model.Command

            throw new GeniePreconditionException("No commands entered. Unable to add commands.");
        }
        final Cluster cluster = this.clusterRepo.findOne(id);
        if (cluster != null) {
            for (final Command detached : commands) {
                final Command cmd = this.commandRepo.findOne(detached.getId());
                if (cmd != null) {
                    cluster.addCommand(cmd);
                } else {
                    throw new GenieNotFoundException("No command with id " + detached.getId() + " exists.");
                }
View Full Code Here

Examples of com.nexirius.framework.command.Command

            try {
                String defaultCommandName = null;
                if (clientMethods != null) {
                    for (Iterator iterator = clientMethods.iterator(); iterator.hasNext();) {
                        Command command = (Command) iterator.next();

                        if (command.isDefaultButton()) {
                            defaultCommandName = command.getCommandName();
                            break;
                        }
                    }
                }
                if (defaultCommandName == null) {
View Full Code Here

Examples of com.occludens.admin.ui.Command

          //Command Link 2
        //Command Toggle
        //Command User
      Menu appNavigationToolbar = new Menu("APPNavigationToolbar");
      appNavigationToolbar.save();
      Command searchCommand = new Command("Search");
      searchCommand.save();
      Menu appNavigationToolbarRight = new Menu("appNavigationToolbarRight");
      appNavigationToolbarRight.save();
      Command bootplyCommand = new Command("Bootply");
      bootplyCommand.save();
     
      Menu alertMenu = new Menu("Alert");
      alertMenu.save();
      Command alertLink1Command = new Command("Link 1");
      alertLink1Command.save();
      Command alertLink2Command = new Command("Link 2");
      alertLink2Command.save();
      alertMenu.addItems(alertLink1Command, alertLink2Command);
      alertMenu.save();
     
      Command toggleCommand = new Command("Toggle");
      toggleCommand.save();
      Command userCommand = new Command("User");
      userCommand.save();
      appNavigationToolbarRight.addItems(bootplyCommand, alertMenu, toggleCommand, userCommand);
      appNavigationToolbarRight.save();
     
      appNavigationToolbar.addItems(searchCommand, appNavigationToolbarRight);
      appNavigationToolbar.save();
View Full Code Here

Examples of com.rabbitmq.client.Command

        ShutdownSignalException sse = snc.getCloseReason();
        checkShutdownSignal(expectedCode, sse);
    }

    public void checkShutdownSignal(int expectedCode, ShutdownSignalException sse) {
        Command closeCommand = (Command) sse.getReason();
        channel = null;
        if (sse.isHardError()) {
            connection = null;
            AMQP.Connection.Close closeMethod = (AMQP.Connection.Close) closeCommand.getMethod();
            assertEquals(expectedCode, closeMethod.getReplyCode());
        } else {
            AMQP.Channel.Close closeMethod = (AMQP.Channel.Close) closeCommand.getMethod();
            assertEquals(expectedCode, closeMethod.getReplyCode());
        }
    }
View Full Code Here

Examples of com.sk89q.intake.Command

    public void registerMethodsAsCommands(Dispatcher dispatcher, Object object) throws ParametricException {
        checkNotNull(dispatcher);
        checkNotNull(object);

        for (Method method : object.getClass().getDeclaredMethods()) {
            Command definition = method.getAnnotation(Command.class);
            if (definition != null) {
                CommandCallable callable = build(object, method, definition);
                dispatcher.registerCommand(callable, definition.aliases());
            }
        }
    }
View Full Code Here

Examples of com.sk89q.minecraft.util.commands.Command

     * @param object the object contain the methods
     * @throws ParametricException thrown if the commands cannot be registered
     */
    public void registerMethodsAsCommands(Dispatcher dispatcher, Object object) throws ParametricException {
        for (Method method : object.getClass().getDeclaredMethods()) {
            Command definition = method.getAnnotation(Command.class);
            if (definition != null) {
                CommandCallable callable = build(object, method, definition);
                dispatcher.registerCommand(callable, definition.aliases());
            }
        }
    }
View Full Code Here

Examples of com.sos.scheduler.engine.kernel.command.Command


    @Override public final Command parse(Element e) {
        String className = e.getAttribute("plugin_class");
        CommandPluginAdapter a = subsystem.commandPluginByClassName(className);
        Command subcommand = a.getCommandDispatcher().parse(singleSubcommandElement(e));
        return new PlugInCommandCommand(className, subcommand);
    }
View Full Code Here

Examples of com.splunk.Command

            System.exit(1);
        }
    }

    static void run(String[] args) throws IOException {
        Command command = Command.splunk("search");
        command.parse(args);

        if (command.args.length != 1)
            Command.error("Search expression required");
        String query = command.args[0];
View Full Code Here

Examples of com.sun.dtv.lwuit.Command

        try {
            String text = getLogContent();
            TextArea area = new TextArea(text, 5, 20);
            Form f = new Form("Log");
            final Form current = Display.getInstance().getCurrent();
            Command back = new Command("Back") {
                public void actionPerformed(ActionEvent ev) {
                    current.show();
                }
            };
            f.addCommand(back);
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.