Search in sources :

Example 1 with EditMultipleSourcesAction

use of com.android.tools.idea.actions.EditMultipleSourcesAction in project android by JetBrains.

the class AllocationsView method getMainActions.

private ActionGroup getMainActions() {
    DefaultActionGroup group = new DefaultActionGroup();
    group.add(new ComboBoxAction() {

        @NotNull
        @Override
        protected DefaultActionGroup createPopupActionGroup(JComponent button) {
            DefaultActionGroup group = new DefaultActionGroup();
            group.add(new ChangeGroupAction(GroupByMethod.NAME));
            group.add(new ChangeGroupAction(GroupByAllocator.NAME));
            return group;
        }

        @Override
        public void update(AnActionEvent e) {
            super.update(e);
            getTemplatePresentation().setText(myGroupBy.get(myGroupByName).getName());
            e.getPresentation().setText(myGroupBy.get(myGroupByName).getName());
        }
    });
    group.add(new EditMultipleSourcesAction());
    group.add(new ShowChartAction());
    group.add(new Separator());
    group.add(new BrowserHelpAction("Hprof Viewer", "http://developer.android.com/r/studio-ui/am-allocation.html"));
    return group;
}
Also used : BrowserHelpAction(com.android.tools.idea.actions.BrowserHelpAction) ComboBoxAction(com.intellij.openapi.actionSystem.ex.ComboBoxAction) EditMultipleSourcesAction(com.android.tools.idea.actions.EditMultipleSourcesAction) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

BrowserHelpAction (com.android.tools.idea.actions.BrowserHelpAction)1 EditMultipleSourcesAction (com.android.tools.idea.actions.EditMultipleSourcesAction)1 ComboBoxAction (com.intellij.openapi.actionSystem.ex.ComboBoxAction)1 NotNull (org.jetbrains.annotations.NotNull)1