コード例 #1
0
  /**
   * @param name
   * @param location
   * @param callback
   */
  public static void run(String name, Location location, MacroCallback callback) {
    MacroCommandExecuter macroCommandExecuter = MacroCommandExecuter.getInstance();

    Macro macro = macroCommandExecuter.getMacro(name);
    if (macro == null) {
      throw new RuntimeException("Can not find macro " + name);
    }

    macro.run(location, callback);
  }
コード例 #2
0
 /**
  * @param name
  * @param location
  */
 public static void run(String name, Location location) {
   MacroCommandExecuter.run(name, location, null);
 }