Example usage for com.intellij.openapi.actionSystem ActionPlaces ANT_MESSAGES_POPUP

List of usage examples for com.intellij.openapi.actionSystem ActionPlaces ANT_MESSAGES_POPUP

Introduction

In this page you can find the example usage for com.intellij.openapi.actionSystem ActionPlaces ANT_MESSAGES_POPUP.

Prototype

String ANT_MESSAGES_POPUP

To view the source code for com.intellij.openapi.actionSystem ActionPlaces ANT_MESSAGES_POPUP.

Click Source Link

Usage

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);
}