Package jetbrains.communicator.core.commands

Examples of jetbrains.communicator.core.commands.UserCommand.execute()


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

  public TreePath getPathForUser(User user) {
    TreeNode node = TreeUtils.findNodeWithObject((DefaultMutableTreeNode) getModel().getRoot(), user);
View Full Code Here


        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

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.