Examples of Shortcut


Examples of de.innovationgate.wga.common.beans.csconfig.v2.Shortcut

   
        bind(form, SWTBinder.BINDING_STRATEGY_AS_YOU_TYPE);
  }

  private void handleAddShortcut() {
    Shortcut shortcut = new Shortcut()
    shortcut.setShortcut("");
    shortcut.setReference("");
    shortcut.setType(ShortcutType.TYPE_PLUGIN);
    _shortcutsModel.add(shortcut);
  }
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v2.Shortcut

        CSConfig csconfig = (CSConfig) db.getAttribute(DBATTRIB_CSCONFIG);
        if (csconfig != null && csconfig instanceof de.innovationgate.wga.common.beans.csconfig.v2.CSConfig) {
            de.innovationgate.wga.common.beans.csconfig.v2.CSConfig v2 = (de.innovationgate.wga.common.beans.csconfig.v2.CSConfig) csconfig;
            Iterator shortcuts = v2.getShortcuts().iterator();
            while (shortcuts.hasNext()) {
                Shortcut shortcut = (Shortcut) shortcuts.next();
                if (shortcut.getType() == Shortcut.TYPE_ITEM_MAPPING ||
                    shortcut.getType() == Shortcut.TYPE_META_MAPPING ||
                    shortcut.getType() == Shortcut.TYPE_PLUGIN) {
                    Map<String, String> mappings = (Map<String, String>) (shortcut.getType() == Shortcut.TYPE_ITEM_MAPPING ? itemMappings :
                                          shortcut.getType() == Shortcut.TYPE_META_MAPPING ? metaMappings :
                                                                                             pluginShortcuts);
                    mappings.put(shortcut.getShortcut(), shortcut.getReference());
                }
            }
        }
    }
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v2.Shortcut

               
                // Add TMLScript global shortcuts
                de.innovationgate.wga.common.beans.csconfig.v2.CSConfig v2 = (de.innovationgate.wga.common.beans.csconfig.v2.CSConfig) csConfig;
                Iterator shortcuts = v2.getShortcuts().iterator();
                while (shortcuts.hasNext()) {
                    Shortcut shortcut = (Shortcut) shortcuts.next();
                    if (shortcut.getType() == Shortcut.TYPE_TMLSCRIPT_GLOBAL) {
                        getTmlscriptGlobalRegistry().registerGlobal(new TMLScriptGlobal(shortcut.getShortcut(), TMLScriptGlobal.TYPE_PACKAGE_OR_CLASS, shortcut.getReference()));
                    }
                }
               
            }
           
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v2.Shortcut

        if (_csConfig instanceof de.innovationgate.wga.common.beans.csconfig.v2.CSConfig) {
            de.innovationgate.wga.common.beans.csconfig.v2.CSConfig v2 = (de.innovationgate.wga.common.beans.csconfig.v2.CSConfig) _csConfig;
            Iterator<Shortcut> shortcuts = v2.getShortcuts().iterator();
            while (shortcuts.hasNext()) {
                Shortcut shortcut = shortcuts.next();
                if (WGUtils.isEmpty(shortcut.getShortcut())) {
                    errors.add(new ValidationError("A shortcut has no name", new String[] { "shortcuts" }));
                }
                else if (WGUtils.isEmpty(shortcut.getReference())) {
                    errors.add(new ValidationError("The shortcut '" + shortcut.getShortcut() + "' has no reference", new String[] { "shortcuts" }));
                }
                else if (shortcut.getType() == Shortcut.TYPE_TMLSCRIPT_GLOBAL) {
                    if (!Character.isUpperCase(shortcut.getShortcut().charAt(0))) {
                        errors.add(new ValidationError("The TMLScript global shortcut '" + shortcut.getShortcut() + "' must start with an uppercase letter.", new String[] { "shortcuts" }));
                    }
                }

            }
        }
View Full Code Here

Examples of lineage2.gameserver.model.actor.instances.player.ShortCut

          newChar.getInventory().equipItem(item);
        }
      }
      if (item.getItemId() == 5588)
      {
        newChar.registerShortCut(new ShortCut(11, 0, ShortCut.TYPE_ITEM, item.getObjectId(), -1, 1));
      }
    }
    newChar.rewardSkills(false,false);
    if (newChar.getSkillLevel(1001) > 0)
    {
      newChar.registerShortCut(new ShortCut(1, 0, ShortCut.TYPE_SKILL, 1001, 1, 1));
    }
    if (newChar.getSkillLevel(1177) > 0)
    {
      newChar.registerShortCut(new ShortCut(1, 0, ShortCut.TYPE_SKILL, 1177, 1, 1));
    }
    if (newChar.getSkillLevel(1216) > 0)
    {
      newChar.registerShortCut(new ShortCut(9, 0, ShortCut.TYPE_SKILL, 1216, 1, 1));
    }
    newChar.registerShortCut(new ShortCut(0, 0, ShortCut.TYPE_ACTION, 2, -1, 1));
    newChar.registerShortCut(new ShortCut(3, 0, ShortCut.TYPE_ACTION, 5, -1, 1));
    newChar.registerShortCut(new ShortCut(10, 0, ShortCut.TYPE_ACTION, 0, -1, 1));
    newChar.registerShortCut(new ShortCut(0, ShortCut.PAGE_FLY_TRANSFORM, ShortCut.TYPE_SKILL, 911, 1, 1));
    newChar.registerShortCut(new ShortCut(3, ShortCut.PAGE_FLY_TRANSFORM, ShortCut.TYPE_SKILL, 884, 1, 1));
    newChar.registerShortCut(new ShortCut(4, ShortCut.PAGE_FLY_TRANSFORM, ShortCut.TYPE_SKILL, 885, 1, 1));
    newChar.registerShortCut(new ShortCut(0, ShortCut.PAGE_AIRSHIP, ShortCut.TYPE_ACTION, 70, 0, 1));
    startTutorialQuest(newChar);
    if ((Config.STARTING_LEVEL > 1) && (Config.STARTING_LEVEL <= Experience.getMaxLevel()))
    {
      newChar.addExpAndSp(Experience.LEVEL[(Config.STARTING_LEVEL + 1)] - 1L, 0L);
    }
View Full Code Here

Examples of lineage2.gameserver.model.actor.instances.player.ShortCut

  {
    for (ShortCut sc : player.getAllShortCuts())
    {
      if ((sc.getId() == skillId) && (sc.getType() == ShortCut.TYPE_SKILL))
      {
        ShortCut newsc = new ShortCut(sc.getSlot(), sc.getPage(), sc.getType(), sc.getId(), skillLevel, 1);
        player.sendPacket(new ShortCutRegister(player, newsc));
        player.registerShortCut(newsc);
      }
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.actor.instances.player.ShortCut

    if ((_page < 0) || (_page > ShortCut.PAGE_MAX))
    {
      activeChar.sendActionFailed();
      return;
    }
    ShortCut shortCut = new ShortCut(_slot, _page, _type, _id, _lvl, _characterType);
    activeChar.sendPacket(new ShortCutRegister(activeChar, shortCut));
    activeChar.registerShortCut(shortCut);
  }
View Full Code Here

Examples of lineage2.gameserver.model.actor.instances.player.ShortCut

          {
            for (ShortCut sc : getAllShortCuts())
            {
              if ((sc.getId() == sk.getId()) && (sc.getType() == ShortCut.TYPE_SKILL))
              {
                ShortCut newsc = new ShortCut(sc.getSlot(), sc.getPage(), sc.getType(), sc.getId(), sk.getLevel(), 1);
                sendPacket(new ShortCutRegister(this, newsc));
                registerShortCut(newsc);
              }
            }
          }
View Full Code Here

Examples of net.rim.blackberry.api.homescreen.Shortcut

                HomeScreen.removeShortcut(SHORTCUT_ID);
            } else {
                return;
            }
        }
        final Shortcut newShortcut =
                ShortcutProvider.createShortcut("Home Screen Demo Shortcut",
                        SHORTCUT_ID, APP_DESCRIPTOR_INDEX);
        HomeScreen.addShortcut(newShortcut, _homeScreenLocationPicker
                .getLocation());
View Full Code Here

Examples of org.andrewberman.ui.Shortcut

    {
      ToolDockItem tdi = (ToolDockItem) items.get(i);
      Tool t = (Tool) tdi.getTool();
      if (t.getShortcut() != null)
      {
        Shortcut s = t.getShortcut();
        if (s.matchesKeyEvent(e))
        {
          activeItem = tdi;
        }
      }
    }
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.