Search in sources :

Example 1 with LabelWithEditButton

use of com.android.tools.adtui.LabelWithEditButton in project flutter-intellij by flutter.

the class FlutterSettingsStepFixture method enterPackageName.

@SuppressWarnings("Duplicates")
@NotNull
public FlutterSettingsStepFixture enterPackageName(@NotNull String text) {
    LabelWithEditButton editLabel = robot().finder().findByType(target(), LabelWithEditButton.class);
    JButton editButton = robot().finder().findByType(editLabel, JButton.class);
    robot().click(editButton);
    JTextComponent textField = findTextFieldWithLabel("Package name");
    replaceText(textField, text);
    // click "Done"
    robot().click(editButton);
    return this;
}
Also used : LabelWithEditButton(com.android.tools.adtui.LabelWithEditButton) JTextComponent(javax.swing.text.JTextComponent) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

LabelWithEditButton (com.android.tools.adtui.LabelWithEditButton)1 JTextComponent (javax.swing.text.JTextComponent)1 NotNull (org.jetbrains.annotations.NotNull)1