Search in sources :

Example 1 with ExternalSystemSourceType

use of com.intellij.openapi.externalSystem.model.project.ExternalSystemSourceType in project android by JetBrains.

the class ContentRootSourcePaths method addSourceDirPaths.

private void addSourceDirPaths(@NotNull SourceProvider sourceProvider, boolean isTest) {
    ExternalSystemSourceType sourceType = isTest ? ExternalSystemSourceType.TEST : ExternalSystemSourceType.SOURCE;
    addSourceDirPaths(sourceType, sourceProvider.getAidlDirectories());
    addSourceDirPaths(sourceType, sourceProvider.getAssetsDirectories());
    addSourceDirPaths(sourceType, sourceProvider.getJavaDirectories());
    addSourceDirPaths(sourceType, sourceProvider.getCppDirectories());
    addSourceDirPaths(sourceType, sourceProvider.getCDirectories());
    addSourceDirPaths(sourceType, sourceProvider.getRenderscriptDirectories());
    sourceType = isTest ? ExternalSystemSourceType.TEST_RESOURCE : ExternalSystemSourceType.RESOURCE;
    addSourceDirPaths(sourceType, sourceProvider.getResDirectories());
    addSourceDirPaths(sourceType, sourceProvider.getResourcesDirectories());
}
Also used : ExternalSystemSourceType(com.intellij.openapi.externalSystem.model.project.ExternalSystemSourceType)

Example 2 with ExternalSystemSourceType

use of com.intellij.openapi.externalSystem.model.project.ExternalSystemSourceType in project android by JetBrains.

the class ContentRootSourcePaths method addGeneratedDirPaths.

private void addGeneratedDirPaths(@NotNull AndroidArtifactStub androidArtifact, boolean isTest) {
    ExternalSystemSourceType sourceType = isTest ? ExternalSystemSourceType.TEST_GENERATED : ExternalSystemSourceType.SOURCE_GENERATED;
    addSourceDirPaths(sourceType, getGeneratedSourceFolders(androidArtifact));
    sourceType = isTest ? ExternalSystemSourceType.TEST_RESOURCE : ExternalSystemSourceType.RESOURCE;
    addSourceDirPaths(sourceType, androidArtifact.getGeneratedResourceFolders());
}
Also used : ExternalSystemSourceType(com.intellij.openapi.externalSystem.model.project.ExternalSystemSourceType)

Aggregations

ExternalSystemSourceType (com.intellij.openapi.externalSystem.model.project.ExternalSystemSourceType)2