Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 338499 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/mylyn/internal/tasks/ui/views/PresentationFilter.java (-5 / +1 lines)
Lines 18-24 Link Here
18
import org.eclipse.mylyn.internal.tasks.ui.AbstractTaskListFilter;
18
import org.eclipse.mylyn.internal.tasks.ui.AbstractTaskListFilter;
19
import org.eclipse.mylyn.tasks.core.IAttributeContainer;
19
import org.eclipse.mylyn.tasks.core.IAttributeContainer;
20
import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
20
import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
21
import org.eclipse.mylyn.tasks.core.ITask;
22
21
23
/**
22
/**
24
 * @author Steffen Pingel
23
 * @author Steffen Pingel
Lines 70-85 Link Here
70
			if (!filterSubtasks) {
69
			if (!filterSubtasks) {
71
				return true;
70
				return true;
72
			}
71
			}
73
			if (((ITask) element).getTaskId().equals("20196")) {
74
				System.err.println();
75
			}
76
			for (AbstractTaskContainer container : ((AbstractTask) element).getParentContainers()) {
72
			for (AbstractTaskContainer container : ((AbstractTask) element).getParentContainers()) {
77
				// categories are always visible
73
				// categories are always visible
78
				if (container instanceof AbstractTaskCategory) {
74
				if (container instanceof AbstractTaskCategory) {
79
					return true;
75
					return true;
80
				}
76
				}
81
				// show task if is contained in a query
77
				// show task if is contained in a query
82
				if (container instanceof IRepositoryQuery && isQueryVisible(container)) {
78
				if (container instanceof IRepositoryQuery && (!filterHiddenQueries || isQueryVisible(container))) {
83
					return true;
79
					return true;
84
				}
80
				}
85
			}
81
			}

Return to bug 338499