Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-22 19:21:09 +0000
committermkersten2007-06-22 19:21:09 +0000
commit170abc85208edbd836e81a27672acae4ce5ef5f6 (patch)
tree17626a328911a11c62f0259919a9691fb7ad68bc
parent9147a2de0367a730a516bc3c83766d5eeb14baee (diff)
downloadorg.eclipse.mylyn.tasks-170abc85208edbd836e81a27672acae4ce5ef5f6.tar.gz
org.eclipse.mylyn.tasks-170abc85208edbd836e81a27672acae4ce5ef5f6.tar.xz
org.eclipse.mylyn.tasks-170abc85208edbd836e81a27672acae4ce5ef5f6.zip
NEW - bug 193847: Incoming indicator not displayed when query is expanded
https://bugs.eclipse.org/bugs/show_bug.cgi?id=193847
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/CustomTaskListDecorationDrawer.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/CustomTaskListDecorationDrawer.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/CustomTaskListDecorationDrawer.java
index 51450c0a9..325b99c37 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/CustomTaskListDecorationDrawer.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/CustomTaskListDecorationDrawer.java
@@ -110,8 +110,7 @@ class CustomTaskListDecorationDrawer implements Listener {
offsetY += 2;
}
if (element instanceof AbstractTaskContainer && !(element instanceof AbstractTask)) {
- if (!Arrays.asList(this.taskListView.getViewer().getExpandedElements()).contains(element)
- && hasIncoming((AbstractTaskContainer) element)) {
+ if (!hideDecorationOnContainer(element) && hasIncoming((AbstractTaskContainer) element)) {
int additionalSquish = 0;
if (platformSpecificSquish > 0 && taskListView.synchronizationOverlaid) {
additionalSquish = platformSpecificSquish + 3;
@@ -135,6 +134,11 @@ class CustomTaskListDecorationDrawer implements Listener {
}
}
+ private boolean hideDecorationOnContainer(AbstractTaskContainer element) {
+ return taskListView.isFocusedMode() &&
+ Arrays.asList(this.taskListView.getViewer().getExpandedElements()).contains(element);
+ }
+
private boolean hasIncoming(AbstractTaskContainer container) {
for (AbstractTask task : container.getChildren()) {
if (task instanceof AbstractTask) {

Back to the top