本文整理匯總了Java中com.intellij.openapi.ui.playback.commands.KeyCodeTypeCommand類的典型用法代碼示例。如果您正苦於以下問題:Java KeyCodeTypeCommand類的具體用法?Java KeyCodeTypeCommand怎麽用?Java KeyCodeTypeCommand使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
KeyCodeTypeCommand類屬於com.intellij.openapi.ui.playback.commands包,在下文中一共展示了KeyCodeTypeCommand類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: generateTo
import com.intellij.openapi.ui.playback.commands.KeyCodeTypeCommand; //導入依賴的package包/類
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");
}
}
示例2: parseKeyCodes
import com.intellij.openapi.ui.playback.commands.KeyCodeTypeCommand; //導入依賴的package包/類
private static Couple<List<Integer>> parseKeyCodes(String keyCodesText) {
return KeyCodeTypeCommand.parseKeyCodes(keyCodesText);
}
示例3: unparseKeyCodes
import com.intellij.openapi.ui.playback.commands.KeyCodeTypeCommand; //導入依賴的package包/類
public static String unparseKeyCodes(Couple<List<Integer>> keyCodes) {
return KeyCodeTypeCommand.unparseKeyCodes(keyCodes);
}
示例4: parseKeyCodes
import com.intellij.openapi.ui.playback.commands.KeyCodeTypeCommand; //導入依賴的package包/類
private static Pair<List<Integer>, List<Integer>> parseKeyCodes(String keyCodesText) {
return KeyCodeTypeCommand.parseKeyCodes(keyCodesText);
}
示例5: unparseKeyCodes
import com.intellij.openapi.ui.playback.commands.KeyCodeTypeCommand; //導入依賴的package包/類
public static String unparseKeyCodes(Pair<List<Integer>, List<Integer>> keyCodes) {
return KeyCodeTypeCommand.unparseKeyCodes(keyCodes);
}