Search in sources :

Example 1 with BothModeAction

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

the class NlActionsToolbar method createConfigActions.

private static DefaultActionGroup createConfigActions(ConfigurationHolder configurationHolder, DesignSurface surface) {
    DefaultActionGroup group = new DefaultActionGroup();
    group.add(new DesignModeAction(surface));
    group.add(new BlueprintModeAction(surface));
    group.add(new BothModeAction(surface));
    group.addSeparator();
    OrientationMenuAction orientationAction = new OrientationMenuAction(configurationHolder);
    group.add(orientationAction);
    group.addSeparator();
    DeviceMenuAction deviceAction = new DeviceMenuAction(configurationHolder);
    group.add(deviceAction);
    TargetMenuAction targetMenuAction = new TargetMenuAction(configurationHolder);
    group.add(targetMenuAction);
    ThemeMenuAction themeAction = new ThemeMenuAction(configurationHolder);
    group.add(themeAction);
    group.addSeparator();
    LocaleMenuAction localeAction = new LocaleMenuAction(configurationHolder);
    group.add(localeAction);
    group.addSeparator();
    ConfigurationMenuAction configAction = new ConfigurationMenuAction(surface);
    group.add(configAction);
    return group;
}
Also used : DesignModeAction(com.android.tools.idea.actions.DesignModeAction) BlueprintModeAction(com.android.tools.idea.actions.BlueprintModeAction) DefaultActionGroup(com.intellij.openapi.actionSystem.DefaultActionGroup) BothModeAction(com.android.tools.idea.actions.BothModeAction)

Aggregations

BlueprintModeAction (com.android.tools.idea.actions.BlueprintModeAction)1 BothModeAction (com.android.tools.idea.actions.BothModeAction)1 DesignModeAction (com.android.tools.idea.actions.DesignModeAction)1 DefaultActionGroup (com.intellij.openapi.actionSystem.DefaultActionGroup)1