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