Package org.gradle.foundation

Examples of org.gradle.foundation.ProjectView


        return convertProjects( projectView.getDependsOnProjects() );
    }

    public ProjectVersion1 getSubProject( String name )
    {
        ProjectView subProject = projectView.getSubProject(name);
        if( subProject == null ) {
            return null;
        }

        return new ProjectWrapper(subProject);
View Full Code Here


    public String getFullProjectName() {
        return projectView.getFullProjectName();
    }

    public ProjectVersion1 getSubProjectFromFullPath(String fullProjectName) {
        ProjectView projectFromFullPath = projectView.getSubProjectFromFullPath(fullProjectName);
        if( projectFromFullPath == null ) {
            return null;
        }
        return new ProjectWrapper( projectFromFullPath );
    }
View Full Code Here

        List<ProjectVersion1> returnProjects = new ArrayList<ProjectVersion1>();
        if( projectViewList != null )
        {
            Iterator<ProjectView> projectViewIterator = projectViewList.iterator();
            while (projectViewIterator.hasNext()) {
                ProjectView projectView = projectViewIterator.next();
                returnProjects.add( new ProjectWrapper( projectView ) );
            }
        }

        return returnProjects;
View Full Code Here

    private void editSelectedFiles() {
        TaskTreeComponent.MultipleSelection tasks = treeComponent.getSelectedProjectsAndTasks();

        Iterator<ProjectView> iterator = tasks.projects.iterator();
        while (iterator.hasNext()) {
            ProjectView projectView = iterator.next();
            File file = projectView.getBuildFile();
            if( file != null ) {
               alternateUIInteraction.editFile(file, -1 );
            }
        }
    }
View Full Code Here

    }

    public void hideProjects(List<ProjectView> filteredProjects) {
        Iterator<ProjectView> iterator = filteredProjects.iterator();
        while (iterator.hasNext()) {
            ProjectView projectView = iterator.next();
            if (!filteredOutProjectNames.contains(projectView.getName())) {
                filteredOutProjectNames.add(projectView.getName());
            }
        }

        notifyChanges();
    }
View Full Code Here

    }

    public void showProjects(List<ProjectView> filteredProjects) {
        Iterator<ProjectView> iterator = filteredProjects.iterator();
        while (iterator.hasNext()) {
            ProjectView projectView = iterator.next();
            filteredOutProjectNames.remove(projectView.getName());
        }
        notifyChanges();
    }
View Full Code Here

                                               List<ProjectView> projects, P parentProjectObject) {
        List<P> projectObjects = new ArrayList<P>();

        Iterator<ProjectView> iterator = projects.iterator();
        while (iterator.hasNext()) {
            ProjectView project = iterator.next();

            if (filter.doesAllowProject(project)) {
                P userProjectObject = visitor.visitProject(project, parentProjectObject);
                projectObjects.add(userProjectObject);

                //visit sub projects
                visitProjects(visitor, filter, project.getSubProjects(), userProjectObject);

                //visit tasks
                visitTasks(visitor, filter, project, userProjectObject);
            }
        }
View Full Code Here

        List<P> projectObjects = new ArrayList<P>();

        Iterator<ProjectView> iterator = projects.iterator();
        int index = 0;
        while (iterator.hasNext()) {
            ProjectView project = iterator.next();

            if (filter.doesAllowProject(project)) {
                P userProjectObject = visitor.visitProject(project, index, parentProjectObject);
                projectObjects.add(userProjectObject);

                //visit sub projects
                List<P> subProjectObjects = visitProjects(visitor, filter, project.getSubProjects(), userProjectObject);

                //visit tasks. Notice that we pass in the number of subprojects as a starting index. This is so they'll come afterwards.
                List<T> taskObjects = visitTasks(visitor, filter, project, subProjectObjects.size(), userProjectObject);

                visitor.completedVisitingProject(userProjectObject, subProjectObjects, taskObjects);
View Full Code Here

    public List<ProjectVersion1> getDependantProjects() {
        return Collections.emptyList();
    }

    public ProjectVersion1 getSubProject(String name) {
        ProjectView subProject = projectView.getSubProject(name);
        if (subProject == null) {
            return null;
        }

        return new ProjectWrapper(subProject);
View Full Code Here

    public String getFullProjectName() {
        return projectView.getFullProjectName();
    }

    public ProjectVersion1 getSubProjectFromFullPath(String fullProjectName) {
        ProjectView projectFromFullPath = projectView.getSubProjectFromFullPath(fullProjectName);
        if (projectFromFullPath == null) {
            return null;
        }
        return new ProjectWrapper(projectFromFullPath);
    }
View Full Code Here

TOP

Related Classes of org.gradle.foundation.ProjectView

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.