Search in sources :

Example 1 with SwingAddMultipleFavoritesInteraction

use of org.gradle.gradleplugin.userinterface.swing.generic.SwingAddMultipleFavoritesInteraction in project gradle by gradle.

the class TaskTreeTab method addSelectedToFavorites.

/**
     * Adds whatever is selected to the favorites.
     */
private void addSelectedToFavorites() {
    List<TaskView> tasks = treeComponent.getSelectedTasks();
    gradlePluginLord.getFavoritesEditor().addMutlipleFavorites(tasks, false, new SwingAddMultipleFavoritesInteraction(SwingUtilities.getWindowAncestor(mainPanel)));
}
Also used : TaskView(org.gradle.foundation.TaskView) SwingAddMultipleFavoritesInteraction(org.gradle.gradleplugin.userinterface.swing.generic.SwingAddMultipleFavoritesInteraction)

Aggregations

TaskView (org.gradle.foundation.TaskView)1 SwingAddMultipleFavoritesInteraction (org.gradle.gradleplugin.userinterface.swing.generic.SwingAddMultipleFavoritesInteraction)1