Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-04-26 22:45:52 +0000
committermkersten2007-04-26 22:45:52 +0000
commit40b6e0bc15bb0bff840087da703d3dbadbcb436c (patch)
tree45794041fb8063ff2c2c6fba9ccd1a8754457c38 /org.eclipse.mylyn.bugzilla.ui
parentd96a110ddcda404092ae6078638c37367f37e7de (diff)
downloadorg.eclipse.mylyn.tasks-40b6e0bc15bb0bff840087da703d3dbadbcb436c.tar.gz
org.eclipse.mylyn.tasks-40b6e0bc15bb0bff840087da703d3dbadbcb436c.tar.xz
org.eclipse.mylyn.tasks-40b6e0bc15bb0bff840087da703d3dbadbcb436c.zip
NEW - bug 182772: improve Task List table/tree layout
https://bugs.eclipse.org/bugs/show_bug.cgi?id=182772
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/icons/eview16/overlay-normal.gifbin0 -> 78 bytes
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/icons/find.gif (renamed from org.eclipse.mylyn.bugzilla.ui/icons/openresult.gif)bin157 -> 157 bytes
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/icons/remove-all.gifbin117 -> 0 bytes
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/icons/remove.gifbin97 -> 0 bytes
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/icons/selectAll.gifbin149 -> 0 bytes
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaImages.java2
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskDecorator.java10
7 files changed, 8 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/icons/eview16/overlay-normal.gif b/org.eclipse.mylyn.bugzilla.ui/icons/eview16/overlay-normal.gif
new file mode 100644
index 000000000..d582fe0de
--- /dev/null
+++ b/org.eclipse.mylyn.bugzilla.ui/icons/eview16/overlay-normal.gif
Binary files differ
diff --git a/org.eclipse.mylyn.bugzilla.ui/icons/openresult.gif b/org.eclipse.mylyn.bugzilla.ui/icons/find.gif
index 2b645a88f..2b645a88f 100644
--- a/org.eclipse.mylyn.bugzilla.ui/icons/openresult.gif
+++ b/org.eclipse.mylyn.bugzilla.ui/icons/find.gif
Binary files differ
diff --git a/org.eclipse.mylyn.bugzilla.ui/icons/remove-all.gif b/org.eclipse.mylyn.bugzilla.ui/icons/remove-all.gif
deleted file mode 100644
index 2c069ab3f..000000000
--- a/org.eclipse.mylyn.bugzilla.ui/icons/remove-all.gif
+++ /dev/null
Binary files differ
diff --git a/org.eclipse.mylyn.bugzilla.ui/icons/remove.gif b/org.eclipse.mylyn.bugzilla.ui/icons/remove.gif
deleted file mode 100644
index 12a9167c5..000000000
--- a/org.eclipse.mylyn.bugzilla.ui/icons/remove.gif
+++ /dev/null
Binary files differ
diff --git a/org.eclipse.mylyn.bugzilla.ui/icons/selectAll.gif b/org.eclipse.mylyn.bugzilla.ui/icons/selectAll.gif
deleted file mode 100644
index e159862e3..000000000
--- a/org.eclipse.mylyn.bugzilla.ui/icons/selectAll.gif
+++ /dev/null
Binary files differ
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaImages.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaImages.java
index b7306b1ff..db1f076c5 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaImages.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaImages.java
@@ -51,6 +51,8 @@ public class BugzillaImages {
public static final ImageDescriptor OVERLAY_ENHANCEMENT = create(T_VIEW, "overlay-feature.gif");
+ public static final ImageDescriptor OVERLAY_NORMAL = create(T_VIEW, "overlay-normal.gif");
+
private static ImageDescriptor create(String prefix, String name) {
try {
return ImageDescriptor.createFromURL(makeIconFileURL(prefix, name));
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskDecorator.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskDecorator.java
index d4e4ff65a..d96f53974 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskDecorator.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskDecorator.java
@@ -13,15 +13,15 @@ package org.eclipse.mylar.internal.bugzilla.ui.tasklist;
import org.eclipse.jface.viewers.IDecoration;
import org.eclipse.jface.viewers.ILabelProviderListener;
-import org.eclipse.jface.viewers.ILightweightLabelDecorator;
import org.eclipse.mylar.internal.bugzilla.core.BugzillaQueryHit;
import org.eclipse.mylar.internal.bugzilla.core.BugzillaTask;
import org.eclipse.mylar.internal.bugzilla.ui.BugzillaImages;
+import org.eclipse.mylar.tasks.ui.AbstractTaskDecorator;
/**
* @author Mik Kersten
*/
-public class BugzillaTaskDecorator implements ILightweightLabelDecorator {
+public class BugzillaTaskDecorator extends AbstractTaskDecorator {
public void decorate(Object element, IDecoration decoration) {
if (element instanceof BugzillaTask) {
@@ -31,9 +31,11 @@ public class BugzillaTaskDecorator implements ILightweightLabelDecorator {
if (severity != null) {
// XXX: refactor to use configuration
if ("major".equals(severity) || "blocker".equals(severity) || "critical".equals(severity)) {
- decoration.addOverlay(BugzillaImages.OVERLAY_MAJOR, IDecoration.BOTTOM_RIGHT);
+ decoration.addOverlay(BugzillaImages.OVERLAY_MAJOR, getQuadrantForKind());
} else if ("enhancement".equals(severity)) {
- decoration.addOverlay(BugzillaImages.OVERLAY_ENHANCEMENT, IDecoration.BOTTOM_RIGHT);
+ decoration.addOverlay(BugzillaImages.OVERLAY_ENHANCEMENT, getQuadrantForKind());
+ } else {
+ decoration.addOverlay(BugzillaImages.OVERLAY_NORMAL, getQuadrantForKind());
}
}
} else if (element instanceof BugzillaQueryHit) {

Back to the top