Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-07-06 06:55:05 +0000
committerspingel2010-07-06 06:55:05 +0000
commitee395092b1bc9444cb92d43e25cef116ef651939 (patch)
tree6f86963766419f33f0451533c326bb457468fd79 /org.eclipse.mylyn.trac.ui/src/org/eclipse
parent2c42e20aa5cc8133af6d9c18ea512ddb59980031 (diff)
downloadorg.eclipse.mylyn.tasks-ee395092b1bc9444cb92d43e25cef116ef651939.tar.gz
org.eclipse.mylyn.tasks-ee395092b1bc9444cb92d43e25cef116ef651939.tar.xz
org.eclipse.mylyn.tasks-ee395092b1bc9444cb92d43e25cef116ef651939.zip
NEW - bug 318954: support stories and improve sub task creation
https://bugs.eclipse.org/bugs/show_bug.cgi?id=318954
Diffstat (limited to 'org.eclipse.mylyn.trac.ui/src/org/eclipse')
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracConnectorUi.java6
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracImages.java2
2 files changed, 6 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracConnectorUi.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracConnectorUi.java
index 2638f9b57..0bd1b9063 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracConnectorUi.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracConnectorUi.java
@@ -106,6 +106,8 @@ public class TracConnectorUi extends AbstractRepositoryConnectorUi {
return TracImages.OVERLAY_DEFECT;
} else if (taskKind == TaskKind.ENHANCEMENT) {
return TracImages.OVERLAY_ENHANCEMENT;
+ } else if (taskKind == TaskKind.STORY) {
+ return TracImages.OVERLAY_STORY;
} else if (taskKind == TaskKind.TASK) {
return null;
}
@@ -126,8 +128,8 @@ public class TracConnectorUi extends AbstractRepositoryConnectorUi {
if (taskComment == null) {
return NLS.bind(Messages.TracConnectorUi_Replying_to__ticket_X_X_, task.getTaskKey(), task.getOwner());
} else if (includeTask) {
- return NLS.bind(Messages.TracConnectorUi_Replying_to__comment_ticket_X_X_X_, new Object[] {
- task.getTaskKey(), taskComment.getNumber(), taskComment.getAuthor().getPersonId() });
+ return NLS.bind(Messages.TracConnectorUi_Replying_to__comment_ticket_X_X_X_,
+ new Object[] { task.getTaskKey(), taskComment.getNumber(), taskComment.getAuthor().getPersonId() });
} else {
return NLS.bind(Messages.TracConnectorUi_Replying_to__comment_X_X_, taskComment.getNumber(),
taskComment.getAuthor().getPersonId());
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracImages.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracImages.java
index f02c57314..7ba70ee0b 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracImages.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracImages.java
@@ -31,6 +31,8 @@ public class TracImages {
public static final ImageDescriptor OVERLAY_ENHANCEMENT = create(T_VIEW, "overlay-enhancement.gif"); //$NON-NLS-1$
+ public static final ImageDescriptor OVERLAY_STORY = create(T_VIEW, "overlay-story.gif"); //$NON-NLS-1$
+
private static ImageDescriptor create(String prefix, String name) {
try {
return ImageDescriptor.createFromURL(makeIconFileURL(prefix, name));

Back to the top