Java 类com.intellij.openapi.ui.playback.commands.TypeCommand 实例源码

项目:intellij-ce-playground    文件:ActionMacro.java   
public void generateTo(StringBuffer script) {
  if (TypeCommand.containsUnicode(myText)) {
    script.append(KeyCodeTypeCommand.PREFIX).append(" ");

    for (int i = 0; i < myKeyCodes.size(); i++) {
      Integer each = myKeyCodes.get(i);
      script.append(each.toString());
      script.append(KeyCodeTypeCommand.MODIFIER_DELIMITER);
      script.append(myModifiers.get(i));
      if (i < myKeyCodes.size() - 1) {
        script.append(KeyCodeTypeCommand.CODE_DELIMITER);
      }
    }
    script.append(" ").append(myText).append("\n");
  }
  else {
    script.append(myText);
    script.append("\n");
  }
}
项目:tools-idea    文件:ActionMacro.java   
public void generateTo(StringBuffer script) {
  if (TypeCommand.containsUnicode(myText)) {
    script.append(KeyCodeTypeCommand.PREFIX).append(" ");

    for (int i = 0; i < myKeyCodes.size(); i++) {
      Integer each = myKeyCodes.get(i);
      script.append(each.toString());
      script.append(KeyCodeTypeCommand.MODIFIER_DELIMITER);
      script.append(myModifiers.get(i));
      if (i < myKeyCodes.size() - 1) {
        script.append(KeyCodeTypeCommand.CODE_DELIMITER);
      }
    }
    script.append(" ").append(myText).append("\n");
  }
  else {
    script.append(myText);
    script.append("\n");
  }
}
项目:consulo    文件:ActionMacro.java   
public void generateTo(StringBuffer script) {
  if (TypeCommand.containsUnicode(myText)) {
    script.append(KeyCodeTypeCommand.PREFIX).append(" ");

    for (int i = 0; i < myKeyCodes.size(); i++) {
      Integer each = myKeyCodes.get(i);
      script.append(each.toString());
      script.append(KeyCodeTypeCommand.MODIFIER_DELIMITER);
      script.append(myModifiers.get(i));
      if (i < myKeyCodes.size() - 1) {
        script.append(KeyCodeTypeCommand.CODE_DELIMITER);
      }
    }
    script.append(" ").append(myText).append("\n");
  }
  else {
    script.append(myText);
    script.append("\n");
  }
}