Examples of activate()


Examples of jade.mtp.MTP.activate()

          }
        };
       
        if(address == null) {
          // Let the MTP choose the address
          TransportAddress ta = proto.activate(dispatcher, myProfile);
          address = proto.addrToStr(ta);
        }
        else {
          // Convert the given string into a TransportAddress object and use it
          TransportAddress ta = proto.strToAddr(address);
View Full Code Here

Examples of java.rmi.activation.ActivationID.activate()

            /* Register the desired service with the activation system */
            aid = ActivateWrapper.register(
          gid, adesc, getRestart(), sys);
            aid = (ActivationID) activationIDPreparer.prepareProxy(aid);
   
            proxy = aid.activate(true);

      if(proxy != null) {
                proxy = innerProxyPreparer.prepareProxy(proxy);
          if (proxy instanceof ServiceProxyAccessor) {
                    proxy = ((ServiceProxyAccessor)proxy).getServiceProxy();
View Full Code Here

Examples of l2p.gameserver.instancemanager.CursedWeaponsManager.activate()

          L2Object target = activeChar.getTarget();
          if(target != null && target.isPlayer() && !((L2Player) target).isInOlympiadMode())
          {
            L2Player player = (L2Player) target;
            L2ItemInstance item = ItemTable.getInstance().createItem(cw.getItemId());
            cwm.activate(player, player.getInventory().addItem(item));
            cwm.showUsageTime(player, cw);
          }
        }
        break;
      case admin_cw_drop:
View Full Code Here

Examples of lineage2.gameserver.instancemanager.CursedWeaponsManager.activate()

          GameObject target = activeChar.getTarget();
          if ((target != null) && target.isPlayer() && !((Player) target).isInOlympiadMode())
          {
            Player player = (Player) target;
            ItemInstance item = ItemFunctions.createItem(cw.getItemId());
            cwm.activate(player, player.getInventory().addItem(item));
            cwm.showUsageTime(player, cw);
          }
        }
        break;
      case admin_cw_drop:
View Full Code Here

Examples of mage.abilities.Ability.activate()

      if (!game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.CAST_SPELL, ability.getId(), playerId))) {
        game.bookmarkState();
        removeFromHand(card, game);
        card.moveToZone(Zone.STACK, ability.getId(), game, false);
        Ability spellAbility = game.getStack().getSpell(ability.getId()).getSpellAbility();
        if (spellAbility.activate(game, noMana)) {
          for (KickerAbility kicker: card.getAbilities().getKickerAbilities()) {
            kicker.activate(game, false);
          }
          game.fireEvent(GameEvent.getEvent(GameEvent.EventType.SPELL_CAST, spellAbility.getId(), playerId));
          game.fireInformEvent(name + " casts " + card.getName());
View Full Code Here

Examples of mage.abilities.TriggeredAbility.activate()

    //20091005 - 603.3c, 603.3d
    game.bookmarkState();
    TriggeredAbility ability = (TriggeredAbility) source.copy();
    if (ability.getTargets().canChoose(ability.getSourceId(), playerId, game)) {
      game.getStack().push(new StackAbility(ability, playerId));
      if (ability.activate(game, false)) {
        game.removeLastBookmark();
        return true;
      }
    }
    game.restoreState();
View Full Code Here

Examples of mage.game.stack.Spell.activate()

                // some effects set sourceId to cast without paying mana costs
                if (ability.getSourceId().equals(getCastSourceIdWithoutMana())) {
                    noMana = true;
                }
                setCastSourceIdWithoutMana(null);
                if (spell.activate(game, noMana)) {
                    GameEvent event = GameEvent.getEvent(GameEvent.EventType.SPELL_CAST, spell.getSpellAbility().getId(), spell.getSpellAbility().getSourceId(), playerId);
                    event.setZone(fromZone);
                    game.fireEvent(event);
                    game.informPlayers(new StringBuilder(name).append(spell.getActivatedMessage(game)).toString());
                    game.removeBookmark(bookmark);
View Full Code Here

Examples of net.datacrow.console.views.View.activate()

        tabbedPane.removeAll();

        MasterView[] masterViews = activeModule.getViews();
        for (int i = 0; i < masterViews.length; i++) {
            View view = masterViews[i].getCurrent();
            view.activate();
           
            if (view.getType() == View._TYPE_INSERT && !SecurityCentre.getInstance().getUser().isEditingAllowed(view.getModule()))
                continue;
               
            tabbedPane.addTab(view.getTitle(), view.getIcon(), view);
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotShell.activate()

   * @throws QuickFixNotFoundException Throw if a quick fix problem occurs.
   */
  private SWTBotShell activatePopupShell() throws QuickFixNotFoundException {
    try {
      SWTBotShell shell = bot.shell("", 1);
      shell.activate();
      if (log.isDebugEnabled())
        log.debug("Activated quickfix shell.");
      return shell;
    } catch (Exception e) {
      throw new QuickFixNotFoundException("Quickfix popup not found. Giving up.", e);
View Full Code Here

Examples of net.sourceforge.marathon.display.readline.Join.Call.activate()

    @Override
    void dispatch(Join join, final Object[] args) {
        final Call call = (Call) args[0];
        args[0] = call.getMessage();
        call.activate(join, this, args);
    }

    public abstract Object react(Join join, Object[] args);
}
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.