Package org.gradle.gradleplugin.foundation.filters

Examples of org.gradle.gradleplugin.foundation.filters.AllowAllProjectAndTaskFilter


     */
    public void testAllowAllFiltering() {
        TestVisitor testVisitor = new TestVisitor();

        TaskTreePopulationVisitor.visitProjectAndTasks(buildInformation.getProjects(), testVisitor,
                new AllowAllProjectAndTaskFilter(), null);

        //everything should show up
        testVisitor.setExpectedProjects(myRootProject, mySubProject1, mySubSubProject, mySubProject2);
        testVisitor.setExpectedTasks(mySubProject1Lib, mySubProject1Doc, mySubSubProjectLib, mySubSubProjectDoc,
                mySubProject2Lib, mySubProject2doc, mySubProject1Comple, mySubSubProjectCompile, mySubProject2Compile);
View Full Code Here


    private void populate() {
        if (toggleFilterButton.isSelected()) {
           treeComponent.populate(editor.createFilter());
        }
        else {
           treeComponent.populate(new AllowAllProjectAndTaskFilter());
        }

       //reset the background to indicate that we're populated
        treeComponent.getTree().setBackground(defaultTreeBackground);
View Full Code Here

       @author mhunsicker
    */

    public static <P, T> void visitProjectAndTasks(List<ProjectView> projects, Visitor<P, T> visitor,
                                                   P rootProjectObject) {
        visitProjectAndTasks(projects, visitor, new AllowAllProjectAndTaskFilter(), rootProjectObject);
    }
View Full Code Here

       @author mhunsicker
    */

    public static <P, T> void visitProjectAndTasks(List<ProjectView> projects, Visitor<P, T> visitor,
                                                   P rootProjectObject) {
        visitProjectAndTasks(projects, visitor, new AllowAllProjectAndTaskFilter(), rootProjectObject);
    }
View Full Code Here

       This is the same as the other version of visitProjectsAndTasks except this
       one visits everything.
    */

    public static <P, T> void visitProjectAndTasks(List<ProjectView> projects, Visitor<P, T> visitor, P rootProjectObject) {
        visitProjectAndTasks(projects, visitor, new AllowAllProjectAndTaskFilter(), rootProjectObject);
    }
View Full Code Here

       one visits everything.
    */

    public static <P, T> void visitProjectAndTasks(List<ProjectView> projects, Visitor<P, T> visitor,
                                                   P rootProjectObject) {
        visitProjectAndTasks(projects, visitor, new AllowAllProjectAndTaskFilter(), rootProjectObject);
    }
View Full Code Here

     */
    public void testAllowAllFiltering() {
        TestVisitor testVisitor = new TestVisitor();

        TaskTreePopulationVisitor.visitProjectAndTasks(buildInformation.getProjects(), testVisitor,
                new AllowAllProjectAndTaskFilter(), null);

        //everything should show up
        testVisitor.setExpectedProjects(myRootProject, mySubProject1, mySubSubProject, mySubProject2);
        testVisitor.setExpectedTasks(mySubProject1Lib, mySubProject1Doc, mySubSubProjectLib, mySubSubProjectDoc,
                mySubProject2Lib, mySubProject2doc, mySubProject1Comple, mySubSubProjectCompile, mySubProject2Compile);
View Full Code Here

     */
    private void populate() {
        if (toggleFilterButton.isSelected()) {
            treeComponent.populate(editor.createFilter());
        } else {
            treeComponent.populate(new AllowAllProjectAndTaskFilter());
        }

        //reset the background to indicate that we're populated
        treeComponent.getTree().setBackground(defaultTreeBackground);

View Full Code Here

TOP

Related Classes of org.gradle.gradleplugin.foundation.filters.AllowAllProjectAndTaskFilter

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.