use of jadx.gui.ui.popupmenu.JPackagePopupMenu in project jadx by skylot.
the class MainWindow method treeRightClickAction.
private void treeRightClickAction(MouseEvent e) {
JNode obj = getJNodeUnderMouse(e);
if (obj instanceof JPackage) {
JPackagePopupMenu menu = new JPackagePopupMenu(this, (JPackage) obj);
menu.show(e.getComponent(), e.getX(), e.getY());
} else if (obj instanceof JClass || obj instanceof JField || obj instanceof JMethod) {
JMenuItem jmi = new JMenuItem(NLS.str("popup.rename"));
jmi.addActionListener(action -> RenameDialog.rename(this, obj));
JPopupMenu menu = new JPopupMenu();
menu.add(jmi);
menu.show(e.getComponent(), e.getX(), e.getY());
}
}
Aggregations