disable refactor this everywhere but main menu

This commit is contained in:
anna
2011-10-28 14:00:14 +02:00
parent 78b77d65a2
commit 37cae11540
@@ -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";
}