Example usage for com.intellij.openapi.actionSystem CommonShortcuts getNewForDialogs

List of usage examples for com.intellij.openapi.actionSystem CommonShortcuts getNewForDialogs

Introduction

In this page you can find the example usage for com.intellij.openapi.actionSystem CommonShortcuts getNewForDialogs.

Prototype

public static ShortcutSet getNewForDialogs() 

Source Link

Usage

From source file:com.intellij.ui.CommonActionsPanel.java

License:Apache License

public static ShortcutSet getCommonShortcut(Buttons button) {
    switch (button) {
    case ADD://ww  w .j a v a 2 s . co  m
        return CommonShortcuts.getNewForDialogs();
    case EDIT:
        return CustomShortcutSet.fromString("ENTER");
    case REMOVE:
        return CustomShortcutSet.fromString(SystemInfo.isMac ? "meta BACK_SPACE" : "alt DELETE");
    case UP:
        return CommonShortcuts.MOVE_UP;
    case DOWN:
        return CommonShortcuts.MOVE_DOWN;
    }
    return null;
}

From source file:com.vladsch.MissingInActions.util.CommonUIShortcuts.java

License:Apache License

public static ShortcutSet getNewForDialogs() {
    return CommonShortcuts.getNewForDialogs();
}