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;
}
Aggregations