mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
provide ActionsPlace.quick_list; allow refactor this in other quick lists (IDEA-105943)
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ public class RefactoringQuickListPopupAction extends QuickSwitchSchemeAction {
|
||||
@Override
|
||||
public void update(AnActionEvent e) {
|
||||
super.update(e);
|
||||
e.getPresentation().setVisible(e.getPlace() == ActionPlaces.MAIN_MENU);
|
||||
e.getPresentation().setVisible(e.getPlace() == ActionPlaces.MAIN_MENU || e.getPlace() == ActionPlaces.ACTION_PLACE_QUICK_LIST_POPUP_ACTION);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -104,6 +104,7 @@ public abstract class ActionPlaces {
|
||||
|
||||
public static final String TFS_TREE_POPUP = "TfsTreePopup";
|
||||
public static final String ACTION_PLACE_VCS_QUICK_LIST_POPUP_ACTION = "ActionPlace.VcsQuickListPopupAction";
|
||||
public static final String ACTION_PLACE_QUICK_LIST_POPUP_ACTION = "ActionPlace.QuickListPopupAction";
|
||||
|
||||
public static final String PHING_EXPLORER_POPUP = "PhingExplorerPopup";
|
||||
public static final String PHING_EXPLORER_TOOLBAR = "PhingExplorerToolbar";
|
||||
|
||||
+2
-4
@@ -17,10 +17,7 @@ package com.intellij.openapi.actionSystem.ex;
|
||||
|
||||
import com.intellij.ide.IdeBundle;
|
||||
import com.intellij.ide.actions.QuickSwitchSchemeAction;
|
||||
import com.intellij.openapi.actionSystem.ActionManager;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.DataContext;
|
||||
import com.intellij.openapi.actionSystem.DefaultActionGroup;
|
||||
import com.intellij.openapi.actionSystem.*;
|
||||
import com.intellij.openapi.actionSystem.impl.BundledQuickListsProvider;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.application.PathManager;
|
||||
@@ -231,6 +228,7 @@ public class QuickListsManager implements ExportableApplicationComponent, NamedJ
|
||||
|
||||
public InvokeQuickListAction(QuickList quickList) {
|
||||
myQuickList = quickList;
|
||||
myActionPlace = ActionPlaces.ACTION_PLACE_QUICK_LIST_POPUP_ACTION;
|
||||
getTemplatePresentation().setDescription(myQuickList.getDescription());
|
||||
getTemplatePresentation().setText(myQuickList.getDisplayName(), false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user