Search in sources :

Example 1 with AndroidFacetType

use of org.jetbrains.android.facet.AndroidFacetType in project android by JetBrains.

the class AndroidFacetModuleSetupStep method createAndAddFacet.

@NotNull
private static AndroidFacet createAndAddFacet(@NotNull Module module, @NotNull IdeModifiableModelsProvider ideModelsProvider) {
    ModifiableFacetModel model = ideModelsProvider.getModifiableFacetModel(module);
    AndroidFacetType facetType = AndroidFacet.getFacetType();
    AndroidFacet facet = facetType.createFacet(module, AndroidFacet.NAME, facetType.createDefaultConfiguration(), null);
    model.addFacet(facet);
    return facet;
}
Also used : AndroidFacetType(org.jetbrains.android.facet.AndroidFacetType) ModifiableFacetModel(com.intellij.facet.ModifiableFacetModel) AndroidFacet(org.jetbrains.android.facet.AndroidFacet) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

ModifiableFacetModel (com.intellij.facet.ModifiableFacetModel)1 AndroidFacet (org.jetbrains.android.facet.AndroidFacet)1 AndroidFacetType (org.jetbrains.android.facet.AndroidFacetType)1 NotNull (org.jetbrains.annotations.NotNull)1