Search in sources :

Example 1 with ManifestPanel

use of com.android.tools.idea.editors.manifest.ManifestPanel in project android by JetBrains.

the class EditorFixture method getMergedManifestEditor.

@NotNull
public MergedManifestFixture getMergedManifestEditor() {
    return GuiQuery.getNonNull(() -> {
        FileEditor[] editors = FileEditorManager.getInstance(myFrame.getProject()).getSelectedEditors();
        checkState(editors.length > 0, "no selected editors");
        Component manifestPanel = editors[0].getComponent().getComponent(0);
        checkState(manifestPanel instanceof ManifestPanel, "not a %s: %s", ManifestPanel.class.getSimpleName(), manifestPanel);
        return new MergedManifestFixture(robot, (ManifestPanel) manifestPanel);
    });
}
Also used : FileEditor(com.intellij.openapi.fileEditor.FileEditor) ThemeEditorComponent(com.android.tools.idea.editors.theme.ThemeEditorComponent) ManifestPanel(com.android.tools.idea.editors.manifest.ManifestPanel) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

ManifestPanel (com.android.tools.idea.editors.manifest.ManifestPanel)1 ThemeEditorComponent (com.android.tools.idea.editors.theme.ThemeEditorComponent)1 FileEditor (com.intellij.openapi.fileEditor.FileEditor)1 NotNull (org.jetbrains.annotations.NotNull)1