Examples of UserCommand


Examples of com.bleujin.framework.db.procedure.UserCommand

  public void testComsite() throws Exception {

    dc.execUpdate("truncate table framework_test_tblc#");
   
    CombinedUserProcedures upts = new CombinedUserProcedures(dc, "composite") ;
    UserCommand cmd1 = (UserCommand) dc.createUserCommand("insert into framework_test_tblc# values(1, 'BlaBla')");
    UserCommand cmd2 = (UserCommand) dc.createUserCommand("select * from framework_test_tblc#");
    upts.add(cmd1, "insert", IQueryable.UPDATE_COMMAND).add(cmd2, "select", IQueryable.QUERY_COMMAND) ;

    upts.execUpdate() ;
   
    Map result = upts.getResultMap() ;
View Full Code Here

Examples of jetbrains.communicator.core.commands.UserCommand

    }
  }

  public void update(AnActionEvent e) {
    super.update(e);
    UserCommand command = getCommand(e);
    e.getPresentation().setEnabled(command != null && command.isEnabled());
    if (command instanceof NamedUserCommand) {
      NamedUserCommand userCommand = (NamedUserCommand) command;
      e.getPresentation().setText(userCommand.getName(), true);
      e.getPresentation().setIcon(userCommand.getIcon());
    }
View Full Code Here

Examples of jetbrains.communicator.core.commands.UserCommand

    }
  }

  protected void invokeSendMessageAction() {
    MutablePicoContainer container = BaseAction.getContainer(this);
    UserCommand command = Pico.getCommandManager().getCommand(SendMessageCommand.class, container);
    if (command.isEnabled()) {
      command.execute();
    }
  }
View Full Code Here

Examples of jetbrains.communicator.core.commands.UserCommand

    myCommandManager = new CommandManagerImpl();
    myContainer = Pico.getInstance().makeChildContainer();
  }

  public void testGetCommand() throws Exception {
    UserCommand command = myCommandManager.getCommand(MyTestCommand.class, myContainer);
    assertNotNull(command);
    assertSame(MyTestCommand.class, command.getClass());

    assertNotNull(myContainer.getComponentInstanceOfType(MyTestCommand.class));
  }
View Full Code Here

Examples of jetbrains.communicator.core.commands.UserCommand

    assertNotNull(myContainer.getComponentInstanceOfType(MyTestCommand.class));
  }

  public void testGetCommandTwice() throws Exception {
    UserCommand command = myCommandManager.getCommand(MyTestCommand.class, myContainer);
    UserCommand command1 = myCommandManager.getCommand(MyTestCommand.class, myContainer);
    assertSame(command, command1);
  }
View Full Code Here

Examples of jetbrains.communicator.core.commands.UserCommand

    myFlags.add(Pair.create(myUserEnterKeyToCheckBox, IdeaFlags.USE_ENTER_FOR_MESSAGES));
    myFlags.add(Pair.create(myShowPopup, IdeaFlags.POPUP_ON_MESSAGE));

    myOptions = Pico.getOptions();

    final UserCommand command = Pico.getCommandManager().getCommand(
        ClearHistoryCommand.class, BaseAction.getContainer(project));

    myClearHistory.setEnabled(command.isEnabled());
    myClearHistory.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        command.execute();
        myClearHistory.setEnabled(command.isEnabled());
      }
    });
  }
View Full Code Here

Examples of mireka.pop.command.UserCommand

    public CommandHandler(Session session) {
        this.session = session;
        commandMap.put("NOOP", new NoopCommand(session));
        commandMap.put("CAPA", new CapaCommand(session));
        commandMap.put("QUIT", new QuitCommand(session));
        UserCommand userCommand = new UserCommand(session);
        commandMap.put("USER", userCommand);
        commandMap.put("PASS", new PassCommand(session, userCommand));
        commandMap.put("STAT", new StatCommand(session));
        commandMap.put("LIST", new ListCommand(session));
        commandMap.put("UIDL", new UidlCommand(session));
View Full Code Here

Examples of org.apache.accumulo.core.util.shell.commands.UserCommand

        new SetShellIterCommand(), new ListShellIterCommand(), new DeleteShellIterCommand()};
    Command[] otherCommands = {new HiddenCommand()};
    Command[] permissionsCommands = {new GrantCommand(), new RevokeCommand(), new SystemPermissionsCommand(), new TablePermissionsCommand(),
        new UserPermissionsCommand()};
    Command[] stateCommands = {new AuthenticateCommand(), new ClsCommand(), new ClearCommand(), new NoTableCommand(), new SleepCommand(), new TableCommand(),
        new UserCommand(), new WhoAmICommand()};
    Command[] tableCommands = {new CloneTableCommand(), new ConfigCommand(), new CreateTableCommand(), new DeleteTableCommand(), new DropTableCommand(),
        new DUCommand(), new ExportTableCommand(), new ImportTableCommand(), new OfflineCommand(), new OnlineCommand(), new RenameTableCommand(),
        new TablesCommand()};
    Command[] tableControlCommands = {new AddSplitsCommand(), new CompactCommand(), new ConstraintCommand(), new FlushCommand(), new GetGroupsCommand(),
        new GetSplitsCommand(), new MergeCommand(), new SetGroupsCommand()};
View Full Code Here

Examples of org.apache.accumulo.core.util.shell.commands.UserCommand

        new ImportDirectoryCommand(), new InfoCommand(), new InsertCommand(), new ListIterCommand(), new ListScansCommand(), new MasterStateCommand(),
        new MaxRowCommand(), new MergeCommand(), new NoTableCommand(), new OfflineCommand(), new OnlineCommand(), new PasswdCommand(), new QuestionCommand(),
        new QuitCommand(), new RenameTableCommand(), new RevokeCommand(), new ScanCommand(), new org.apache.accumulo.core.util.shell.commands.SelectCommand(),
        new org.apache.accumulo.core.util.shell.commands.SelectrowCommand(), new SetAuthsCommand(), new SetGroupsCommand(), new SetIterCommand(),
        new SetScanIterCommand(), new SleepCommand(), new SystemPermissionsCommand(), new TableCommand(), new TablePermissionsCommand(), new TablesCommand(),
        new TraceCommand(), new UserCommand(), new UserPermissionsCommand(), new UsersCommand(), new WhoAmICommand(),};
    for (Command cmd : external) {
      commandFactory.put(cmd.getName(), cmd);
    }
  }
View Full Code Here

Examples of org.apache.accumulo.core.util.shell.commands.UserCommand

        new SetShellIterCommand(), new ListShellIterCommand(), new DeleteShellIterCommand()};
    Command[] otherCommands = {new HiddenCommand()};
    Command[] permissionsCommands = {new GrantCommand(), new RevokeCommand(), new SystemPermissionsCommand(), new TablePermissionsCommand(),
        new UserPermissionsCommand(), new NamespacePermissionsCommand()};
    Command[] stateCommands = {new AuthenticateCommand(), new ClsCommand(), new ClearCommand(), new FateCommand(), new NoTableCommand(), new SleepCommand(),
        new TableCommand(), new UserCommand(), new WhoAmICommand()};
    Command[] tableCommands = {new CloneTableCommand(), new ConfigCommand(), new CreateTableCommand(), new DeleteTableCommand(), new DropTableCommand(),
        new DUCommand(), new ExportTableCommand(), new ImportTableCommand(), new OfflineCommand(), new OnlineCommand(), new RenameTableCommand(),
        new TablesCommand(), new NamespacesCommand(), new CreateNamespaceCommand(), new DeleteNamespaceCommand(), new RenameNamespaceCommand()};
    Command[] tableControlCommands = {new AddSplitsCommand(), new CompactCommand(), new ConstraintCommand(), new FlushCommand(), new GetGroupsCommand(),
        new GetSplitsCommand(), new MergeCommand(), new SetGroupsCommand()};
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.