Search in sources :

Example 1 with TargetAndroidModuleNode

use of com.android.tools.idea.gradle.structure.configurables.android.dependencies.project.treeview.TargetAndroidModuleNode in project android by JetBrains.

the class TargetModulesPanel method popupInvoked.

private void popupInvoked(int x, int y) {
    TargetAndroidModuleNode node = myHyperlinkSupport.getNodeForLocation(x, y);
    if (node != null) {
        PsAndroidModule module = node.getFirstModel();
        DefaultActionGroup group = new DefaultActionGroup();
        group.add(new GoToModuleAction(module.getName(), myContext, myTree));
        ActionPopupMenu popupMenu = ActionManager.getInstance().createActionPopupMenu("", group);
        popupMenu.getComponent().show(myTree, x, y);
    }
}
Also used : PsAndroidModule(com.android.tools.idea.gradle.structure.model.android.PsAndroidModule) TargetAndroidModuleNode(com.android.tools.idea.gradle.structure.configurables.android.dependencies.project.treeview.TargetAndroidModuleNode)

Aggregations

TargetAndroidModuleNode (com.android.tools.idea.gradle.structure.configurables.android.dependencies.project.treeview.TargetAndroidModuleNode)1 PsAndroidModule (com.android.tools.idea.gradle.structure.model.android.PsAndroidModule)1