List of usage examples for com.intellij.openapi.actionSystem CommonShortcuts getCopy
public static ShortcutSet getCopy()
From source file:com.intellij.debugger.ui.impl.InspectPanel.java
License:Apache License
public InspectPanel(Project project, DebuggerStateManager stateManager, @NotNull NodeDescriptorImpl inspectDescriptor) { super(project, stateManager); getInspectTree().setInspectDescriptor(inspectDescriptor); add(ScrollPaneFactory.createScrollPane(getInspectTree()), BorderLayout.CENTER); registerDisposable(DebuggerAction.installEditAction(getInspectTree(), DebuggerActions.EDIT_NODE_SOURCE)); overrideShortcut(getInspectTree(), DebuggerActions.COPY_VALUE, CommonShortcuts.getCopy()); setUpdateEnabled(true);// w w w. j a v a2 s . co m }
From source file:com.intellij.debugger.ui.impl.VariablesPanel.java
License:Apache License
public VariablesPanel(Project project, DebuggerStateManager stateManager, Disposable parent) { super(project, stateManager); setBorder(null);//from ww w . j av a 2s.co m final FrameVariablesTree frameTree = getFrameTree(); myCards = new JPanel(new CardLayout()); myCards.add(frameTree, TREE); myXTree = new MyXVariablesView(project); registerDisposable(myXTree); myCards.add(myXTree.getTree(), X_TREE); JScrollPane pane = ScrollPaneFactory.createScrollPane(myCards); pane.getVerticalScrollBar().setUnitIncrement(10); add(pane, BorderLayout.CENTER); registerDisposable(DebuggerAction.installEditAction(frameTree, DebuggerActions.EDIT_NODE_SOURCE)); overrideShortcut(frameTree, DebuggerActions.COPY_VALUE, CommonShortcuts.getCopy()); overrideShortcut(frameTree, DebuggerActions.SET_VALUE, new CustomShortcutSet(KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0))); new ValueNodeDnD(myTree, parent); }
From source file:com.intellij.debugger.ui.impl.WatchPanel.java
License:Apache License
public WatchPanel(Project project, DebuggerStateManager stateManager) { super(project, stateManager); add(createTreePanel(getWatchTree()), BorderLayout.CENTER); registerDisposable(DebuggerAction.installEditAction(getWatchTree(), DebuggerActions.EDIT_NODE_SOURCE)); overrideShortcut(getWatchTree(), DebuggerActions.COPY_VALUE, CommonShortcuts.getCopy()); }
From source file:com.intellij.xdebugger.impl.ui.tree.XDebuggerTree.java
License:Apache License
private void registerShortcuts() { ActionManager actionManager = ActionManager.getInstance(); actionManager.getAction(XDebuggerActions.SET_VALUE) .registerCustomShortcutSet(new CustomShortcutSet(KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0)), this); actionManager.getAction(XDebuggerActions.COPY_VALUE).registerCustomShortcutSet(CommonShortcuts.getCopy(), this); actionManager.getAction(XDebuggerActions.JUMP_TO_SOURCE) .registerCustomShortcutSet(CommonShortcuts.getEditSource(), this); Shortcut[] editTypeShortcuts = KeymapManager.getInstance().getActiveKeymap() .getShortcuts(XDebuggerActions.EDIT_TYPE_SOURCE); actionManager.getAction(XDebuggerActions.JUMP_TO_TYPE_SOURCE) .registerCustomShortcutSet(new CustomShortcutSet(editTypeShortcuts), this); actionManager.getAction(XDebuggerActions.MARK_OBJECT).registerCustomShortcutSet( new CustomShortcutSet(KeymapManager.getInstance().getActiveKeymap().getShortcuts("ToggleBookmark")), this); }
From source file:com.vladsch.MissingInActions.util.CommonUIShortcuts.java
License:Apache License
public static ShortcutSet getCopy() { return CommonShortcuts.getCopy(); }