Package org.netbeans.gradle.project.api.modelquery

Examples of org.netbeans.gradle.project.api.modelquery.GradleModelDefQuery2


    private static GradleModelDefQuery1 createQuery1(final GradleProjectExtensionDef<?> extensionDef) {
        return createQuery1(extensionDef.getLookup().lookupAll(GradleModelDefQuery1.class));
    }

    private static GradleModelDefQuery2 query1AsQuery2(final GradleModelDefQuery1 query1) {
        return new GradleModelDefQuery2() {
            @Override
            public GradleModelDef getModelDef(GradleTarget gradleTarget) {
                Collection<Class<?>> toolinModels = query1.getToolingModels(gradleTarget);
                if (toolinModels.isEmpty()) {
                    return GradleModelDef.EMPTY;
View Full Code Here


        if (size == 1) {
            return queries.iterator().next();
        }

        return new GradleModelDefQuery2() {
            @Override
            public GradleModelDef getModelDef(GradleTarget gradleTarget) {
                List<GradleProjectInfoQuery<?>> projectInfoQueries
                        = new LinkedList<>();
View Full Code Here

            List<Class<?>> models = new LinkedList<>();
            for (NbGradleExtensionRef extensionRef: extensions) {
                String extensionName = extensionRef.getName();

                GradleModelDefQuery2 modelQuery = extensionRef.getModelNeeds().getQuery2();
                GradleModelDef modelDef = modelQuery.getModelDef(gradleTarget);

                models.addAll(modelDef.getToolingModels());
                addAllToMultiMap(extensionName, modelDef.getProjectInfoQueries(), projectInfoRequests);
                addAllToMultiMap(extensionName, modelDef.getToolingModels(), toolingModelNeeds);
            }
View Full Code Here

TOP

Related Classes of org.netbeans.gradle.project.api.modelquery.GradleModelDefQuery2

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.