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

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

Introduction

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

Prototype

ShortcutSet DOUBLE_CLICK_1

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

Click Source Link

Usage

From source file:com.intellij.ui.dualView.DualView.java

License:Apache License

public void installDoubleClickHandler(AnAction action) {
    action.registerCustomShortcutSet(CommonShortcuts.DOUBLE_CLICK_1, myFlatView);
    action.registerCustomShortcutSet(CommonShortcuts.DOUBLE_CLICK_1, myTreeView);
}

From source file:com.intellij.ui.popup.util.MasterDetailPopupBuilder.java

License:Apache License

private void setChooser(JComponent list) {
    myChooserComponent = list;//from  w ww  .  ja  v a2s . c om
    list.addKeyListener(new KeyAdapter() {
        @Override
        public void keyPressed(KeyEvent e) {
            if (e.getKeyCode() == KeyEvent.VK_DELETE) {
                removeSelectedItems(myProject);
            } else if (e.getModifiersEx() == 0) {
                myDelegate.handleMnemonic(e, myProject, myPopup);
            }
        }
    });
    new AnAction() {
        @Override
        public void actionPerformed(AnActionEvent e) {
            chooseItemWithEnterOrDoubleClick();
        }
    }.registerCustomShortcutSet(new CustomShortcutSet(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0)), list);
    new AnAction() {
        @Override
        public void actionPerformed(AnActionEvent e) {
            chooseItemWithEnterOrDoubleClick();
        }
    }.registerCustomShortcutSet(CommonShortcuts.DOUBLE_CLICK_1, list);
}

From source file:org.community.intellij.plugins.communitycase.update.SkippedCommits.java

License:Apache License

@Override
protected void addActionsTo(DefaultActionGroup group) {
    super.addActionsTo(group);
    ShowAllSubmittedFilesAction showCommit = new ShowAllSubmittedFilesAction();
    showCommit.registerCustomShortcutSet(
            new CustomShortcutSet(CommonShortcuts.DOUBLE_CLICK_1.getShortcuts()[0]), myTree);
    group.addAction(showCommit);/*from www.  ja  v a2 s.  c o  m*/

}