Package org.gradle.tooling.model.idea

Examples of org.gradle.tooling.model.idea.IdeaProject


                EclipseProject eclipseProject = (EclipseProject)fetched.get(EclipseProject.class);
                assertEquals("EclipseProject must match the requested one",
                        projectPath, eclipseProject.getGradleProject().getPath());

                IdeaProject ideaProject = (IdeaProject)fetched.get(IdeaProject.class);
                GradleProject gradleProjectOfIdea = null;
                for (IdeaModule ideaModule: ideaProject.getModules()) {
                    if (projectPath.equals(ideaModule.getGradleProject().getPath())) {
                        gradleProjectOfIdea = ideaModule.getGradleProject();
                        break;
                    }
                }
View Full Code Here


    private NbGradleModel.Builder loadMainModel(
            NbGradleProject project,
            ProjectConnection projectConnection,
            List<NbGradleModel.Builder> otherModels) throws IOException {

        IdeaProject ideaProject
                = getModelWithProgress(projectConnection, IdeaProject.class);

        return parseMainModel(project, ideaProject, otherModels);
    }
View Full Code Here

    private ParsedModel<NbJavaModel> parseModelImpl(ModelLoadResult retrievedModels) throws IOException {
        // FIXME: The specification allows IdeaProject to be available even
        //   if did not request it, so this should be changed to use the
        //   new models if they are available even if there is an IdeaProject.
        IdeaProject ideaProject = retrievedModels.getMainProjectModels().lookup(IdeaProject.class);

        Map<File, NbJavaModel> result = ideaProject != null
                ? parseFromIdeaProject(retrievedModels.getMainProjectDir(), ideaProject)
                : parseFromNewModels(retrievedModels);
View Full Code Here

import java.util.Map;

public class UseOtherTypesToFetchProjectModel implements BuildAction<Map<String, CustomModel>> {
    public Map<String, CustomModel> execute(BuildController controller) {
        // Use an IdeaModule to reference a project
        IdeaProject ideaProject = controller.getModel(IdeaProject.class);
        for (IdeaModule ideaModule : ideaProject.getModules()) {
            visit(ideaModule, controller, new HashMap<String, CustomModel>());
        }

        // Use an EclipseProject to reference a project
        EclipseProject eclipseProject = controller.getModel(EclipseProject.class);
View Full Code Here

TOP

Related Classes of org.gradle.tooling.model.idea.IdeaProject

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.