Examples of Command


Examples of kz.pvnhome.cr3runner.Command

    Panel btnPanel = new Panel();
    btnPanel.setLayout(new GridLayout(commands.size(), 1));

    for (int i = 0; i < commands.size(); i++) {
      Command command = (Command) commands.get(i);
      Button btn = new Button(command.getDescription());
      command.setExecuter(this);
      btn.addKeyListener(command);
      btn.addActionListener(command);
      btnPanel.add(btn);
    }
View Full Code Here

Examples of lipstone.joshua.parser.plugin.helpdata.Command

    units = null;
  }
 
  @Override
  public void loadCommands() throws PluginConflictException {
    addCommand(new Command("addUnit", "add a unit to this unit converter.  Use: addUnit name conversionFactor SI-equivalent abbreviation abbreviation is optional", this));
    addCommand(new Command("removeUnit", "remove a unit from this converter.  Use: removeUnit name", this));
    for (String key : getDataMap()) {
      ArrayList<ConsCell> data = getData(key).splitOnSeparator();
      String[] abbreviations = {};
      if (data.size() > 3) {
        abbreviations = new String[data.size() - 3];
View Full Code Here

Examples of lpa.command.Command

                    RenderingHints.VALUE_TEXT_ANTIALIAS_ON);

                if (apply_strategies) {
                    CompoundCommand c = grid.applyStrategies();
                    if (!undoStack.isEmpty()) {
                        Command last_edge_action = undoStack.pop();
                        last_edge_action.undo();
                        c.add(last_edge_action);
                    }
                    c.execute();
                    undoStack.add(c);
                }
View Full Code Here

Examples of mage.client.util.Command

            int w = getDlgParams().rect.width - 75;
            int h = getDlgParams().rect.height - 90;
            jButtonOK.setBounds(new Rectangle(w / 2 - 40, h - 50, 60, 60));
            jButtonOK.setToolTipText("Ok");

            jButtonOK.setObserver(new Command() {
                public void execute() {
                    DialogManager.getManager(gameId).fadeOut((DialogContainer) getParent());
                }
            });
        }
View Full Code Here

Examples of mage.game.command.Command

    public GameState() {
        players = new Players();
        playerList = new PlayerList();
        turn = new Turn();
        stack = new SpellStack();
        command = new Command();
        exile = new Exile();
        revealed = new Revealed();
        battlefield = new Battlefield();
        effects = new ContinuousEffects();
        triggers = new TriggeredAbilities();
View Full Code Here

Examples of me.taylorkelly.bigbrother.datablock.Command

        //plugin.processPsuedotick();
        Player player = event.getPlayer();
        BBPlayerInfo pi = BBUsersTable.getInstance().getUserByName(player.getName());
        plugin.closeChestIfOpen(pi);
        if (BBSettings.commands && pi.getWatched()) {
            Command dataBlock = new Command(player, event.getMessage(), player.getWorld().getName());
            dataBlock.send();
        }
    }
View Full Code Here

Examples of mungbean.protocol.command.Command

    public DatabaseAdmin(AbstractDatabase database) {
        this.database = database;
    }

    public void dropDatabase() {
        database.mapCollection("$cmd").command(new Command("dropDatabase"));
    }
View Full Code Here

Examples of net.bnubot.db.Command

      throw new IllegalArgumentException("The command " + name + " is already registered");

    if(Command.get(name) == null) {
      Rank max = Rank.getMax();

      Command c = DatabaseContext.getContext().newObject(Command.class);
      c.setRank(max);
      c.setCmdgroup(null);
      c.setDescription(null);
      c.setName(name);
      try {
        c.updateRow();
      } catch (Exception e) {
        throw new IllegalStateException(e);
      }

      String message = "Created command " + name + " with access " + max.getAccess() + "; to change, use %trigger%setauth " + name + " <access>";
View Full Code Here

Examples of net.eldiosantos.command.commands.interfaces.Command

  public void parseCommand(String command) {

    String tokens[] = command.split(" ");
    try {

      Command cmd = vault.getCommandObject(tokens[0], path);
      Response response = cmd.execCommand(tokens);

      this.path = cmd.getPath();

      if (response.isOk()) {
        for (String string : response.getLines()) {
          System.out.println(string);
        }
View Full Code Here

Examples of net.fckeditor.handlers.Command

      getResponse = GetResponse.getInvalidCurrentFolderError();
    else {
     
      // in contrast to doPost the referrer has to send an explicit type
      ResourceType type = context.getResourceType();
      Command command = context.getCommand();
     
      // check permissions for user action
      if ((command.equals(Command.GET_FOLDERS) || command.equals(Command.GET_FOLDERS_AND_FILES))
          && !RequestCycleHandler.isGetResourcesEnabled(request))
        getResponse = GetResponse.getGetResourcesDisabledError();
      else if (command.equals(Command.CREATE_FOLDER) && !RequestCycleHandler.isCreateFolderEnabled(request))
        getResponse = GetResponse.getCreateFolderDisabledError();
      else {
        // make the connector calls, catch its exceptions and generate
        // the proper response object
        try {
          if (command.equals(Command.CREATE_FOLDER)) {
            String newFolderNameStr = request
                .getParameter("NewFolderName");
            logger.debug("Parameter NewFolderName: {}",
                newFolderNameStr);       
            String sanitizedNewFolderNameStr = UtilsFile
                .sanitizeFolderName(newFolderNameStr);
            if (Utils.isEmpty(sanitizedNewFolderNameStr))
              getResponse = GetResponse
                  .getInvalidNewFolderNameError();
            else {
              logger.debug(
                  "Parameter NewFolderName (sanitized): {}",
                  sanitizedNewFolderNameStr);
              connector.createFolder(type, context
                  .getCurrentFolderStr(),
                  sanitizedNewFolderNameStr);
              getResponse = GetResponse.getOK();
            }
          } else if (command.equals(Command.GET_FOLDERS)
              || command
                  .equals(Command.GET_FOLDERS_AND_FILES)) {
            String url = UtilsResponse.getUrl(RequestCycleHandler
                .getUserFilesPath(request), type, context
                .getCurrentFolderStr());
            getResponse = getFoldersAndOrFiles(command, type, context
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.