Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-07-01 22:32:16 +0000
committerspingel2009-07-01 22:32:16 +0000
commit0e5c669e62a91d6f259075d2c2db05210c8da96f (patch)
tree6580c04371f755119a6000d9946b00f77234eb53 /org.eclipse.mylyn.trac.core
parent6469a635436028a73c6e5a15a3b43b3413847bcb (diff)
downloadorg.eclipse.mylyn.tasks-0e5c669e62a91d6f259075d2c2db05210c8da96f.tar.gz
org.eclipse.mylyn.tasks-0e5c669e62a91d6f259075d2c2db05210c8da96f.tar.xz
org.eclipse.mylyn.tasks-0e5c669e62a91d6f259075d2c2db05210c8da96f.zip
NEW - bug 281590: [regression] cannot set resolution for reopened tasks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=281590
Diffstat (limited to 'org.eclipse.mylyn.trac.core')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java4
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracRepositoryInfo.java8
2 files changed, 10 insertions, 2 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 db84110ee..5224d00d1 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
@@ -254,6 +254,8 @@ public class TracTaskDataHandler extends AbstractTaskDataHandler {
label = Messages.TracTaskDataHandler_Resolve_as;
} else if ("reopen".equals(action.getId())) { //$NON-NLS-1$
label = Messages.TracTaskDataHandler_Reopen;
+ } else if ("reassign".equals(action.getId())) { //$NON-NLS-1$
+ // do not add reassign for Trac 0.10 since the assigned to field is editable
} else {
label = action.getId();
}
@@ -268,7 +270,7 @@ public class TracTaskDataHandler extends AbstractTaskDataHandler {
TaskAttribute fieldAttribute = createAttribute(data, field);
fieldAttribute.getMetaData().setKind(null);
attribute.getMetaData().putValue(TaskAttribute.META_ASSOCIATED_ATTRIBUTE_ID, fieldAttribute.getId());
- } else if ("resolve".equals(action)) { //$NON-NLS-1$
+ } else if ("resolve".equals(action.getId())) { //$NON-NLS-1$
attribute.getMetaData().putValue(TaskAttribute.META_ASSOCIATED_ATTRIBUTE_ID,
TracAttribute.RESOLUTION.getTracKey());
}
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracRepositoryInfo.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracRepositoryInfo.java
index 974357129..65f2bf4fc 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracRepositoryInfo.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracRepositoryInfo.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Steffen Pingel and others.
+ * Copyright (c) 2009 Steffen Pingel and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -78,6 +78,12 @@ public class TracRepositoryInfo {
|| apiMajor == major && apiMinor >= minor);
}
+ public boolean isApiVersionOrSmaller(int epoch, int major, int minor) {
+ return apiEpoch < epoch //
+ || apiEpoch == epoch && (apiMajor < major //
+ || apiMajor == major && apiMinor <= minor);
+ }
+
public boolean isStale() {
return apiEpoch == -1 || apiMajor == -1 || apiMinor == -1;
}

Back to the top