mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Correct place for specific actions to look 'enabled'
This commit is contained in:
@@ -270,7 +270,7 @@ public class GotoActionModel implements ChooseByNameModel, CustomMatcherModel, C
|
||||
|
||||
public static AnActionEvent updateActionBeforeShow(AnAction anAction, DataContext dataContext) {
|
||||
final AnActionEvent event = new AnActionEvent(null, dataContext,
|
||||
ActionPlaces.UNKNOWN, new Presentation(), ActionManager.getInstance(),
|
||||
ActionPlaces.ACTION_SEARCH, new Presentation(), ActionManager.getInstance(),
|
||||
0);
|
||||
ActionUtil.performDumbAwareUpdate(anAction, event, false);
|
||||
ActionUtil.performDumbAwareUpdate(anAction, event, true);
|
||||
|
||||
Reference in New Issue
Block a user