List of usage examples for com.intellij.openapi.actionSystem ActionPlaces NAVIGATION_BAR_TOOLBAR
String NAVIGATION_BAR_TOOLBAR
To view the source code for com.intellij.openapi.actionSystem ActionPlaces NAVIGATION_BAR_TOOLBAR.
Click Source Link
From source file:io.flutter.actions.DeviceSelectorAction.java
License:Open Source License
@Override public void update(final AnActionEvent e) { // Suppress device actions in all but the toolbars. final String place = e.getPlace(); if (!Objects.equals(place, ActionPlaces.NAVIGATION_BAR_TOOLBAR) && !Objects.equals(place, ActionPlaces.MAIN_TOOLBAR)) { e.getPresentation().setVisible(false); return;//from ww w . ja va 2s . co m } // Only show device menu when the device daemon process is running. final Project project = e.getProject(); if (!isSelectorVisible(project)) { e.getPresentation().setVisible(false); return; } super.update(e); if (!knownProjects.contains(project)) { knownProjects.add(project); Disposer.register(project, () -> knownProjects.remove(project)); DeviceService.getInstance(project).addListener(() -> update(project, e.getPresentation())); update(project, e.getPresentation()); } }
From source file:io.flutter.actions.ReloadFlutterAppRetarget.java
License:Open Source License
public ReloadFlutterAppRetarget() { super(ReloadFlutterApp.ID, ReloadFlutterApp.TEXT, ReloadFlutterApp.DESCRIPTION, ActionPlaces.MAIN_TOOLBAR, ActionPlaces.NAVIGATION_BAR_TOOLBAR, ActionPlaces.MAIN_MENU); }
From source file:io.flutter.actions.RestartFlutterAppRetarget.java
License:Open Source License
public RestartFlutterAppRetarget() { super(RestartFlutterApp.ID, RestartFlutterApp.TEXT, RestartFlutterApp.DESCRIPTION, ActionPlaces.MAIN_TOOLBAR, ActionPlaces.NAVIGATION_BAR_TOOLBAR, ActionPlaces.MAIN_MENU); }