Search in sources :

Example 6 with ProjectView

use of org.gradle.foundation.ProjectView in project gradle by gradle.

the class BasicFilterEditor method showProjects.

public void showProjects(List<ProjectView> filteredProjects) {
    Iterator<ProjectView> iterator = filteredProjects.iterator();
    while (iterator.hasNext()) {
        ProjectView projectView = iterator.next();
        filteredOutProjectNames.remove(projectView.getName());
    }
    notifyChanges();
}
Also used : ProjectView(org.gradle.foundation.ProjectView)

Example 7 with ProjectView

use of org.gradle.foundation.ProjectView in project gradle by gradle.

the class BasicFilterEditor method hideProjects.

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();
}
Also used : ProjectView(org.gradle.foundation.ProjectView)

Aggregations

ProjectView (org.gradle.foundation.ProjectView)7 ArrayList (java.util.ArrayList)2 TaskTreeComponent (org.gradle.gradleplugin.userinterface.swing.generic.TaskTreeComponent)2 File (java.io.File)1 TreeSelectionEvent (javax.swing.event.TreeSelectionEvent)1 TreeSelectionListener (javax.swing.event.TreeSelectionListener)1 TaskView (org.gradle.foundation.TaskView)1 AlternateUIInteraction (org.gradle.gradleplugin.userinterface.AlternateUIInteraction)1 SwingAddMultipleFavoritesInteraction (org.gradle.gradleplugin.userinterface.swing.generic.SwingAddMultipleFavoritesInteraction)1 ProjectVersion1 (org.gradle.openapi.external.foundation.ProjectVersion1)1