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

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

Introduction

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

Prototype

ShortcutSet ALT_ENTER

To view the source code for com.intellij.openapi.actionSystem CommonShortcuts ALT_ENTER.

Click Source Link

Usage

From source file:com.intellij.execution.testframework.actions.ViewAssertEqualsDiffAction.java

License:Apache License

public static void registerShortcut(final JComponent component) {
    ActionManager.getInstance().getAction(ACTION_ID).registerCustomShortcutSet(CommonShortcuts.ALT_ENTER,
            component);//from  www. j a  v a 2 s  .co m
}

From source file:com.intellij.find.editorHeaderActions.SelectAllAction.java

License:Apache License

public SelectAllAction(EditorSearchComponent editorSearchComponent) {
    super(editorSearchComponent);

    copyFrom(ActionManager.getInstance().getAction(IdeActions.ACTION_SELECT_ALL_OCCURRENCES));
    getTemplatePresentation().setIcon(AllIcons.Actions.CheckMulticaret);

    List<Shortcut> shortcuts = new ArrayList<Shortcut>();
    ContainerUtil.addAll(shortcuts, getShortcutSet().getShortcuts());
    ContainerUtil.addAll(shortcuts, CommonShortcuts.ALT_ENTER.getShortcuts());
    registerShortcutsForComponent(shortcuts, editorSearchComponent.getSearchField());
}

From source file:com.intellij.lang.ant.config.actions.AntBuildFilePropertiesAction.java

License:Apache License

public AntBuildFilePropertiesAction(AntExplorer antExplorer) {
    super(AntBundle.message("build.file.properties.action.name"),
            AntBundle.message("build.file.properties.action.description"), ApacheAntIcons.Properties);
    myAntExplorer = antExplorer;//w  ww.  ja  v a  2  s  .  c  o m
    registerCustomShortcutSet(CommonShortcuts.ALT_ENTER, myAntExplorer);
}

From source file:org.napile.idea.thermit.config.actions.AntBuildFilePropertiesAction.java

License:Apache License

public AntBuildFilePropertiesAction(AntExplorer antExplorer) {
    super(ThermitBundle.message("build.file.properties.action.name"),
            ThermitBundle.message("build.file.properties.action.description"), AllIcons.Ant.Properties);
    myAntExplorer = antExplorer;//  ww w . j a  va2  s .com
    registerCustomShortcutSet(CommonShortcuts.ALT_ENTER, myAntExplorer);
}