Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-02-07 15:17:33 +0000
committerSteffen Pingel2012-02-07 15:17:33 +0000
commit7a5553246c9ac0979f361079fde21a7ec5647d4b (patch)
treec9a15e39cdfef73a86d6db70143875869c18bdb5
parent0af8f9acf81769223fe498f37d47893f07741f78 (diff)
downloadorg.eclipse.mylyn.tasks-7a5553246c9ac0979f361079fde21a7ec5647d4b.tar.gz
org.eclipse.mylyn.tasks-7a5553246c9ac0979f361079fde21a7ec5647d4b.tar.xz
org.eclipse.mylyn.tasks-7a5553246c9ac0979f361079fde21a7ec5647d4b.zip
NEW - bug 370826: update test server to Trac 0.12.3
https://bugs.eclipse.org/bugs/show_bug.cgi?id=370826
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracWebClient.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracWebClient.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracWebClient.java
index 1554ab944..d859f17e2 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracWebClient.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracWebClient.java
@@ -485,8 +485,13 @@ public class TracWebClient extends AbstractTracClient {
int tokenType;
while ((tokenType = t.nextToken()) != StreamTokenizer.TT_EOF) {
switch (tokenType) {
+ case '"':
case StreamTokenizer.TT_WORD:
- if (state == AttributeState.IN_LIST) {
+ if (state == AttributeState.IN_ATTRIBUTE_VALUE_LIST && "options".equals(attributeType)) { //$NON-NLS-1$
+ if (attributeFactory != null) {
+ attributeFactory.addAttribute(t.sval);
+ }
+ } else if (state == AttributeState.IN_LIST) {
if ("component".equals(t.sval)) { //$NON-NLS-1$
data.components = new ArrayList<TracComponent>();
attributeFactory = new AttributeFactory() {
@@ -551,13 +556,6 @@ public class TracWebClient extends AbstractTracClient {
attributeType = t.sval;
}
break;
- case '"':
- if (state == AttributeState.IN_ATTRIBUTE_VALUE_LIST && "options".equals(attributeType)) { //$NON-NLS-1$
- if (attributeFactory != null) {
- attributeFactory.addAttribute(t.sval);
- }
- }
- break;
case ':':
if (state == AttributeState.IN_ATTRIBUTE_KEY) {
state = AttributeState.IN_ATTRIBUTE_VALUE;

Back to the top