Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-22 23:23:24 -0400
committermkersten2007-06-22 23:23:24 -0400
commit05075dfa9713a99ca4970fec0b41c97912caa662 (patch)
treef396727109cdab7f15e80eb10baeca9f6f19700a /org.eclipse.mylyn.trac.core
parent9672fd2b3025710361027bc641db39101543461d (diff)
downloadorg.eclipse.mylyn.tasks-05075dfa9713a99ca4970fec0b41c97912caa662.tar.gz
org.eclipse.mylyn.tasks-05075dfa9713a99ca4970fec0b41c97912caa662.tar.xz
org.eclipse.mylyn.tasks-05075dfa9713a99ca4970fec0b41c97912caa662.zip
REOPENED - bug 149624: [api] AbstractRepositoryTask repositoryUrl and task id should not be derived from handleIdentifier
https://bugs.eclipse.org/bugs/show_bug.cgi?id=149624
Diffstat (limited to 'org.eclipse.mylyn.trac.core')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracWebClient.java4
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracXmlRpcClient.java8
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracSearch.java6
3 files changed, 9 insertions, 9 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracWebClient.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracWebClient.java
index 6584b0d4b..957498f85 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracWebClient.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracWebClient.java
@@ -40,7 +40,6 @@ import org.apache.commons.httpclient.cookie.CookiePolicy;
import org.apache.commons.httpclient.methods.GetMethod;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
-import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.internal.trac.core.model.TracComponent;
import org.eclipse.mylyn.internal.trac.core.model.TracMilestone;
import org.eclipse.mylyn.internal.trac.core.model.TracPriority;
@@ -56,6 +55,7 @@ import org.eclipse.mylyn.internal.trac.core.model.TracSearchFilter.CompareOperat
import org.eclipse.mylyn.internal.trac.core.model.TracTicket.Key;
import org.eclipse.mylyn.internal.trac.core.util.TracUtils;
import org.eclipse.mylyn.internal.trac.core.util.TracHttpClientTransportFactory.TracHttpException;
+import org.eclipse.mylyn.monitor.core.StatusHandler;
import org.eclipse.mylyn.web.core.HtmlStreamTokenizer;
import org.eclipse.mylyn.web.core.HtmlTag;
import org.eclipse.mylyn.web.core.WebClientUtil;
@@ -271,7 +271,7 @@ public class TracWebClient extends AbstractTracClient {
ticket.putBuiltinValue(fields[i], parseTicketValue(t.nextToken()));
}
} catch (NumberFormatException e) {
- StatusManager.log(e, "Error parsing response: " + line);
+ StatusHandler.log(e, "Error parsing response: " + line);
}
}
}
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracXmlRpcClient.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracXmlRpcClient.java
index 2428ef71e..77c5f7990 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracXmlRpcClient.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracXmlRpcClient.java
@@ -24,7 +24,6 @@ import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
-import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.internal.trac.core.model.TracAttachment;
import org.eclipse.mylyn.internal.trac.core.model.TracComment;
import org.eclipse.mylyn.internal.trac.core.model.TracComponent;
@@ -42,6 +41,7 @@ import org.eclipse.mylyn.internal.trac.core.model.TracTicket.Key;
import org.eclipse.mylyn.internal.trac.core.util.TracHttpClientTransportFactory;
import org.eclipse.mylyn.internal.trac.core.util.TracUtils;
import org.eclipse.mylyn.internal.trac.core.util.TracHttpClientTransportFactory.TracHttpException;
+import org.eclipse.mylyn.monitor.core.StatusHandler;
import org.eclipse.mylyn.web.core.WebClientUtil;
/**
@@ -520,10 +520,10 @@ public class TracXmlRpcClient extends AbstractTracClient {
attribute.value = (value instanceof Integer) ? (Integer) value : Integer.parseInt((String) value);
attributes.add(attribute);
} catch (ClassCastException e) {
- StatusManager.log(e, "Invalid response from Trac repository for attribute type: '" + attributeType
+ StatusHandler.log(e, "Invalid response from Trac repository for attribute type: '" + attributeType
+ "'");
} catch (NumberFormatException e) {
- StatusManager.log(e, "Invalid response from Trac repository for attribute type: '" + attributeType
+ StatusHandler.log(e, "Invalid response from Trac repository for attribute type: '" + attributeType
+ "'");
}
}
@@ -567,7 +567,7 @@ public class TracXmlRpcClient extends AbstractTracClient {
try {
in.close();
} catch (IOException e) {
- StatusManager.fail(e, "Error closing attachment stream", false);
+ StatusHandler.fail(e, "Error closing attachment stream", false);
}
}
}
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracSearch.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracSearch.java
index 0172f90f8..87971c9df 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracSearch.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracSearch.java
@@ -21,9 +21,9 @@ import java.util.List;
import java.util.Map;
import java.util.StringTokenizer;
-import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.internal.trac.core.ITracClient;
import org.eclipse.mylyn.internal.trac.core.model.TracSearchFilter.CompareOperator;
+import org.eclipse.mylyn.monitor.core.StatusHandler;
/**
* Represents a Trac search. A search can have multiple {@link TracSearchFilter}s
@@ -146,7 +146,7 @@ public class TracSearch {
sb.append(URLEncoder.encode(filter.getOperator().getQueryValue(), ITracClient.CHARSET));
sb.append(URLEncoder.encode(value, ITracClient.CHARSET));
} catch (UnsupportedEncodingException e) {
- StatusManager.log(e, "Unexpected exception while decoding URL");
+ StatusHandler.log(e, "Unexpected exception while decoding URL");
}
}
}
@@ -173,7 +173,7 @@ public class TracSearch {
addFilter(key, value);
}
} catch (UnsupportedEncodingException e) {
- StatusManager.log(e, "Unexpected exception while decoding URL");
+ StatusHandler.log(e, "Unexpected exception while decoding URL");
}
}
}

Back to the top