Package org.netbeans.gradle.model.internal

Examples of org.netbeans.gradle.model.internal.ModelQueryOutput$BasicInfo


                GradleProjectTree rootTree,
                Map<String, GradleProjectTree> projects) {

            String projectPath = entry.getKey();

            ModelQueryOutput modelOutput = customInfos.get(projectPath);
            if (modelOutput == null) {
                throw new IllegalStateException("Missing ModelQueryOutput for project " + projectPath);
            }

            GradleProjectTree projectTree = projects.get(projectPath);
            if (projectTree == null) {
                throw new IllegalStateException("Missing GradleProjectTree for project " + projectPath);
            }

            Map<Class<?>, Object> toolingModels;

            if (modelClasses.isEmpty()) {
                toolingModels = Collections.emptyMap();
            }
            else {
                ModelGetter modelGetter = projectModelGetter(controller, entry.getValue());

                toolingModels = new IdentityHashMap<Class<?>, Object>(2 * modelClasses.size());
                for (Class<?> modelClass: modelClasses) {
                    Object modelValue = modelGetter.findModel(modelClass);
                    if (modelValue != null) {
                        toolingModels.put(modelClass, modelValue);
                    }
                }
            }

            return new ActionFetchedProjectModels(
                    new GradleMultiProjectDef(rootTree, projectTree),
                    modelOutput.getProjectInfoResults(),
                    toolingModels,
                    modelOutput.getIssue());
        }
View Full Code Here


            List<GradleProjectTree> children = new ArrayList<GradleProjectTree>(basicChildren.size());
            for (BasicGradleProject child: basicChildren) {
                children.add(parseTrees(controller, child, trees));
            }

            ModelQueryOutput customInfo = customInfos.get(projectPath);
            if (customInfo == null) {
                throw new IllegalStateException("Missing ModelQueryOutput for project " + projectPath);
            }

            GenericProjectProperties genericProperties = new GenericProjectProperties(
                    project.getName(),
                    projectPath,
                    project.getProjectDirectory(),
                    customInfo.getBasicInfo().getBuildScript());

            GradleProjectTree result = new GradleProjectTree(
                    genericProperties,
                    customInfo.getBasicInfo().getTasks(),
                    children);

            trees.put(projectPath, result);
            return result;
        }
View Full Code Here

                addBasicInfo(project);
            }
        }

        private String addCustomInfo(ModelGetter modelGetter) {
            ModelQueryOutput customInfo = getModelOutput(modelGetter);
            String projectPath = customInfo.getBasicInfo().getProjectFullName();

            customInfos.put(projectPath, customInfo);
            return projectPath;
        }
View Full Code Here

TOP

Related Classes of org.netbeans.gradle.model.internal.ModelQueryOutput$BasicInfo

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.