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

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


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

        return new GradleModelDefQuery1() {
            @Override
            public Collection<Class<?>> getToolingModels(GradleTarget gradleTarget) {
                List<Class<?>> result = new LinkedList<>();
                for (GradleModelDefQuery1 query: queries) {
                    Collection<Class<?>> models = safelyReturn(query.getToolingModels(gradleTarget), query);
View Full Code Here


        NbGradleModel initialMainModel = mainModel.create();
        for (NbGradleExtensionRef extensionRef: GradleModelLoader.getUnloadedExtensions(project, initialMainModel)) {
            List<Object> extensionModels = new LinkedList<>();

            GradleModelDefQuery1 query1 = extensionRef.getModelNeeds().getQuery1();
            for (Class<?> modelClass: query1.getToolingModels(gradleTarget)) {
                try {
                    Object model = found.get(modelClass);
                    if (model == null) {
                        progress.progress(NbStrings.getFetchingToolingModel(modelClass));
                        model = getModelWithProgress(projectConnection, modelClass);
View Full Code Here

        for (List<Class<?>> models: extension.getGradleModels()) {
            allModels.addAll(models);
        }

        final List<Class<?>> toolingModels = Collections.unmodifiableList(allModels);
        return new GradleModelDefQuery1() {
            @Override
            public Collection<Class<?>> getToolingModels(GradleTarget gradleTarget) {
                if (gradleTarget.getJavaVersion().compareTo(JAVA6_VERSION) < 0) {
                    return Collections.emptyList();
                }
View Full Code Here

TOP

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

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.