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

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


                Collection<Class<?>> toolinModels = query1.getToolingModels(gradleTarget);
                if (toolinModels.isEmpty()) {
                    return GradleModelDef.EMPTY;
                }

                return new GradleModelDef(
                        toolinModels,
                        Collections.<GradleProjectInfoQuery<?>>emptyList());
            }
        };
    }
View Full Code Here


                        = new LinkedList<>();

                List<Class<?>> toolingModels = new LinkedList<>();

                for (GradleModelDefQuery2 query: queries) {
                    GradleModelDef modelDef = safelyReturn(query.getModelDef(gradleTarget), query);

                    projectInfoQueries.addAll(modelDef.getProjectInfoQueries());
                    toolingModels.addAll(modelDef.getToolingModels());
                }
                return new GradleModelDef(toolingModels, projectInfoQueries);
            }
        };
    }
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);
            }

            modelFetcher = new GenericModelFetcher(buildInfoRequests, projectInfoRequests, models);
        }
View Full Code Here

TOP

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

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.