Java 类com.intellij.openapi.actionSystem.AbbreviationManager 实例源码

项目:typengo    文件:ActionFinder.java   
@Nullable
public static ActionInfo findAction(String abbreviation) {
    String actionId;
    List<String> abbrActionIds = AbbreviationManager.getInstance().findActions(abbreviation);
    if (abbrActionIds.size() == 1) {
        actionId = abbrActionIds.get(0);
        return new ActionInfo(abbreviation, actionId);
    }
    else if (abbrActionIds.size() == 0) {
        return BuiltInActions.getActionInfo(abbreviation);
    }
    return null;
}