Search in sources :

Example 1 with TaskList

use of org.eclipse.mylyn.internal.tasks.core.TaskList in project eclipse-integration-commons by spring-projects.

the class IdeUiUtils method getQuery.

private static IRepositoryQuery getQuery(String queryLabel) {
    TaskList taskList = TasksUiPlugin.getTaskList();
    Set<RepositoryQuery> queries = taskList.getQueries();
    for (RepositoryQuery query : queries) {
        if (queryLabel.equals(query.getSummary())) {
            // query already exists
            return query;
        }
    }
    return null;
}
Also used : RepositoryQuery(org.eclipse.mylyn.internal.tasks.core.RepositoryQuery) IRepositoryQuery(org.eclipse.mylyn.tasks.core.IRepositoryQuery) TaskList(org.eclipse.mylyn.internal.tasks.core.TaskList)

Aggregations

RepositoryQuery (org.eclipse.mylyn.internal.tasks.core.RepositoryQuery)1 TaskList (org.eclipse.mylyn.internal.tasks.core.TaskList)1 IRepositoryQuery (org.eclipse.mylyn.tasks.core.IRepositoryQuery)1