Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2013-04-11 23:29:41 -0400
committerSteffen Pingel2013-04-12 17:36:18 -0400
commit9272712034cda71f10525c6fb0dec3a3be321adb (patch)
tree9ab65f35c34fed171e03e574d7c43fb82dea358e /org.eclipse.mylyn.trac.core
parent0fc792d196e825bc409f6b7be6e8d883d792ba38 (diff)
downloadorg.eclipse.mylyn.tasks-9272712034cda71f10525c6fb0dec3a3be321adb.tar.gz
org.eclipse.mylyn.tasks-9272712034cda71f10525c6fb0dec3a3be321adb.tar.xz
org.eclipse.mylyn.tasks-9272712034cda71f10525c6fb0dec3a3be321adb.zip
400396: re-enable disabled Trac tests
Change-Id: I32852bb6266cc1709bd970643102f2fcd81ff016 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=400396
Diffstat (limited to 'org.eclipse.mylyn.trac.core')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java5
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracSearchFilter.java6
2 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java
index 67fcee3fe..09022b56b 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java
@@ -1196,6 +1196,11 @@ public class TracXmlRpcClient extends AbstractTracClient implements ITracWikiCli
return result.booleanValue();
}
+ public boolean deleteWikipage(String pageName, IProgressMonitor monitor) throws TracException {
+ Boolean result = (Boolean) call(monitor, "wiki.deletePage", pageName); //$NON-NLS-1$
+ return result.booleanValue();
+ }
+
public String[] listWikiPageAttachments(String pageName, IProgressMonitor monitor) throws TracException {
Object[] result = (Object[]) call(monitor, "wiki.listAttachments", pageName); //$NON-NLS-1$
String[] attachments = new String[result.length];
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracSearchFilter.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracSearchFilter.java
index 4421131bf..d7482ae83 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracSearchFilter.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracSearchFilter.java
@@ -85,6 +85,12 @@ public class TracSearchFilter {
this.fieldName = fieldName;
}
+ public TracSearchFilter(String fieldName, CompareOperator operator, String value) {
+ this(fieldName);
+ setOperator(operator);
+ addValue(value);
+ }
+
public void addValue(String value) {
values.add(value);
}

Back to the top