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/src/org/eclipse/mylyn/internal/trac/core/model
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/src/org/eclipse/mylyn/internal/trac/core/model')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracRepositoryInfo.java8
1 files changed, 7 insertions, 1 deletions
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