List of usage examples for com.intellij.openapi.actionSystem ActionPlaces ANT_MESSAGES_POPUP
String ANT_MESSAGES_POPUP
To view the source code for com.intellij.openapi.actionSystem ActionPlaces ANT_MESSAGES_POPUP.
Click Source Link
From source file:com.intellij.lang.ant.config.execution.TreeView.java
License:Apache License
private void popupInvoked(Component component, int x, int y) { final TreePath path = myTree.getLeadSelectionPath(); if (path == null) return;//w ww . j a v a 2s.com if (!(path.getLastPathComponent() instanceof MessageNode)) return; if (getData(PlatformDataKeys.NAVIGATABLE_ARRAY) == null) return; DefaultActionGroup group = new DefaultActionGroup(); group.add(ActionManager.getInstance().getAction(IdeActions.ACTION_EDIT_SOURCE)); ActionPopupMenu menu = ActionManager.getInstance().createActionPopupMenu(ActionPlaces.ANT_MESSAGES_POPUP, group); menu.getComponent().show(component, x, y); }
From source file:org.napile.idea.thermit.config.execution.TreeView.java
License:Apache License
private void popupInvoked(Component component, int x, int y) { final TreePath path = myTree.getLeadSelectionPath(); if (path == null) return;// w ww . jav a 2s.co m if (!(path.getLastPathComponent() instanceof MessageNode)) return; if (getData(PlatformDataKeys.NAVIGATABLE_ARRAY.getName()) == null) return; DefaultActionGroup group = new DefaultActionGroup(); group.add(ActionManager.getInstance().getAction(IdeActions.ACTION_EDIT_SOURCE)); ActionPopupMenu menu = ActionManager.getInstance().createActionPopupMenu(ActionPlaces.ANT_MESSAGES_POPUP, group); menu.getComponent().show(component, x, y); }