Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-12-16 18:19:45 +0000
committerspingel2010-12-16 18:19:45 +0000
commitdf94aad972e1f04dde1612f18c5c2405b02fbf3a (patch)
tree97b62add8618656c75ef0a97efb127ae0165fe01 /org.eclipse.mylyn.tasks.ui
parent31f21969c8a776d0f44443146262c15521e37d37 (diff)
downloadorg.eclipse.mylyn.tasks-df94aad972e1f04dde1612f18c5c2405b02fbf3a.tar.gz
org.eclipse.mylyn.tasks-df94aad972e1f04dde1612f18c5c2405b02fbf3a.tar.xz
org.eclipse.mylyn.tasks-df94aad972e1f04dde1612f18c5c2405b02fbf3a.zip
NEW - bug 332779: TaskPropertyTester has context properties backwards in 3.4
https://bugs.eclipse.org/bugs/show_bug.cgi?id=332779
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskPropertyTester.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskPropertyTester.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskPropertyTester.java
index 93c7d8004..5c302b15e 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskPropertyTester.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskPropertyTester.java
@@ -21,7 +21,7 @@ import org.eclipse.mylyn.tasks.core.ITask;
*/
public class TaskPropertyTester extends PropertyTester {
- private static final String PROPERTY_CAN_GET_ATTACHEMNT = "canGetAttachment"; //$NON-NLS-1$
+ private static final String PROPERTY_CAN_GET_ATTACHMENT = "canGetAttachment"; //$NON-NLS-1$
private static final String PROPERTY_CAN_POST_ATTACHMENT = "canPostAttachment"; //$NON-NLS-1$
@@ -52,9 +52,9 @@ public class TaskPropertyTester extends PropertyTester {
if (PROPERTY_CONNECTOR_KIND.equals(property)) {
return task.getConnectorKind().equals(expectedValue);
} else if (PROPERTY_CAN_POST_ATTACHMENT.equals(property)) {
- return equals(AttachmentUtil.canDownloadAttachment(task), expectedValue);
- } else if (PROPERTY_CAN_GET_ATTACHEMNT.equals(property)) {
return equals(AttachmentUtil.canUploadAttachment(task), expectedValue);
+ } else if (PROPERTY_CAN_GET_ATTACHMENT.equals(property)) {
+ return equals(AttachmentUtil.canDownloadAttachment(task), expectedValue);
} else if (PROPERTY_HAS_ACTIVE_TIME.equals(property)) {
return equals(TasksUiInternal.getActiveTime(task) > 0, expectedValue);
} else if (PROPERTY_HAS_EDITS.equals(property)) {

Back to the top