Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-07-02 02:03:29 -0400
committerspingel2009-07-02 02:03:29 -0400
commit23e1fe9f6bd7555dcf3d3d0a0e641289257e1479 (patch)
tree7fcadd43b1d396a34945a06b717acd6683a19d9a
parent0e5c669e62a91d6f259075d2c2db05210c8da96f (diff)
downloadorg.eclipse.mylyn.tasks-23e1fe9f6bd7555dcf3d3d0a0e641289257e1479.tar.gz
org.eclipse.mylyn.tasks-23e1fe9f6bd7555dcf3d3d0a0e641289257e1479.tar.xz
org.eclipse.mylyn.tasks-23e1fe9f6bd7555dcf3d3d0a0e641289257e1479.zip
RESOLVED - bug 281699: Trac sub tasks field link
https://bugs.eclipse.org/bugs/show_bug.cgi?id=281699
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java3
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerTest.java9
2 files changed, 7 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java
index 5224d00d1..80dc4abd2 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java
@@ -380,6 +380,9 @@ public class TracTaskDataHandler extends AbstractTaskDataHandler {
attr.setValue(field.getDefaultValue());
}
}
+ if (ATTRIBUTE_BLOCKED_BY.equals(field.getName()) || ATTRIBUTE_BLOCKING.equals(field.getName())) {
+ metaData.setType(TaskAttribute.TYPE_TASK_DEPENDENCY);
+ }
return attr;
}
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerTest.java
index 67dbd65d4..bc44ec061 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerTest.java
@@ -351,11 +351,10 @@ public class TracTaskDataHandlerTest extends TestCase {
assertEquals("", subTaskMapper.getSummary());
assertEquals("", subTaskMapper.getDescription());
assertEquals(component, subTaskMapper.getComponent());
- assertEquals(parentTaskData.getTaskId(), subTaskData.getRoot().getMappedAttribute(
- TracTaskDataHandler.ATTRIBUTE_BLOCKING).getValue());
- assertEquals("", parentTaskData.getRoot()
- .getMappedAttribute(TracTaskDataHandler.ATTRIBUTE_BLOCKED_BY)
- .getValue());
+ TaskAttribute attribute = subTaskData.getRoot().getMappedAttribute(TracTaskDataHandler.ATTRIBUTE_BLOCKING);
+ assertEquals(parentTaskData.getTaskId(), attribute.getValue());
+ attribute = parentTaskData.getRoot().getMappedAttribute(TracTaskDataHandler.ATTRIBUTE_BLOCKED_BY);
+ assertEquals("", attribute.getValue());
}
public void testGetSubTaskIds() throws Exception {

Back to the top