Search in sources :

Example 1 with ActionButtonFixture

use of com.android.tools.idea.tests.gui.framework.fixture.ActionButtonFixture in project android by JetBrains.

the class NlConfigurationToolbarFixture method showDesign.

/**
   * Click on the "Show Design" button
   */
public NlConfigurationToolbarFixture showDesign() {
    ActionButton button = waitUntilShowing(myRobot, myToolBar.getComponent(), new GenericTypeMatcher<ActionButton>(ActionButton.class) {

        @Override
        protected boolean isMatching(@NotNull ActionButton component) {
            return "Show Design".equals(component.getAction().getTemplatePresentation().getDescription());
        }
    });
    new ActionButtonFixture(myRobot, button).click();
    return this;
}
Also used : ActionButton(com.intellij.openapi.actionSystem.impl.ActionButton) ActionButtonFixture(com.android.tools.idea.tests.gui.framework.fixture.ActionButtonFixture)

Example 2 with ActionButtonFixture

use of com.android.tools.idea.tests.gui.framework.fixture.ActionButtonFixture in project android by JetBrains.

the class NlConfigurationToolbarFixture method showBlueprint.

/**
   * Click on the "Show Blueprint" button
   */
public NlConfigurationToolbarFixture showBlueprint() {
    ActionButton button = waitUntilShowing(myRobot, myToolBar.getComponent(), new GenericTypeMatcher<ActionButton>(ActionButton.class) {

        @Override
        protected boolean isMatching(@NotNull ActionButton component) {
            return "Show Blueprint".equals(component.getAction().getTemplatePresentation().getDescription());
        }
    });
    new ActionButtonFixture(myRobot, button).click();
    return this;
}
Also used : ActionButton(com.intellij.openapi.actionSystem.impl.ActionButton) ActionButtonFixture(com.android.tools.idea.tests.gui.framework.fixture.ActionButtonFixture)

Aggregations

ActionButtonFixture (com.android.tools.idea.tests.gui.framework.fixture.ActionButtonFixture)2 ActionButton (com.intellij.openapi.actionSystem.impl.ActionButton)2