mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
disable refactor this everywhere but main menu
This commit is contained in:
+6
@@ -66,6 +66,12 @@ public class RefactoringQuickListPopupAction extends QuickSwitchSchemeAction {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(AnActionEvent e) {
|
||||
super.update(e);
|
||||
e.getPresentation().setVisible(e.getPlace() == ActionPlaces.MAIN_MENU);
|
||||
}
|
||||
|
||||
protected String getPopupTitle(AnActionEvent e) {
|
||||
return "Refactor This";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user