From ffdec973eff28ccef2a2d6b20f21262fe84e1ce6 Mon Sep 17 00:00:00 2001 From: spingel Date: Tue, 13 Oct 2009 00:58:06 +0000 Subject: NEW - bug 280161: cleanup fixme and todo comments for 3.3 https://bugs.eclipse.org/bugs/show_bug.cgi?id=280161 --- .../eclipse/mylyn/internal/trac/core/client/Messages.java | 4 +++- .../mylyn/internal/trac/core/client/messages.properties | 1 - .../trac/core/util/TracHttpClientTransportFactory.java | 14 +++++++------- 3 files changed, 10 insertions(+), 9 deletions(-) (limited to 'org.eclipse.mylyn.trac.core') diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/Messages.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/Messages.java index 77bf0adaa..2a8242def 100644 --- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/Messages.java +++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/Messages.java @@ -26,10 +26,12 @@ public class Messages extends NLS { NLS.initializeMessages(BUNDLE_NAME, Messages.class); } - public static String TracWebClient_Trac_version_X_is_unsupported_Error; public static String TracWebClient_Updating_attributes; + public static String TracXmlRpcClient_API_version_unsupported_Error; + public static String TracXmlRpcClient_API_version_X_unsupported_Error; + public static String TracXmlRpcClient_Required_API_calls_missing_Error; } diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/messages.properties b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/messages.properties index 36a1cedc7..61bd08319 100644 --- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/messages.properties +++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/messages.properties @@ -8,7 +8,6 @@ # Contributors: # Steffen Pingel - initial API and implementation ############################################################################### -TracWebClient_Trac_version_X_is_unsupported_Error=The Trac version {0} is unsupported. Please use a version from 0.9 to 0.11 TracWebClient_Updating_attributes=Updating attributes TracXmlRpcClient_API_version_unsupported_Error=The API version is unsupported, update the Trac XML-RPC Plugin to revision {0} or later TracXmlRpcClient_API_version_X_unsupported_Error=The API version {0} is unsupported, update the Trac XML-RPC Plugin to revision {1} or later diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/util/TracHttpClientTransportFactory.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/util/TracHttpClientTransportFactory.java index a0b29d5b9..69ae72979 100644 --- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/util/TracHttpClientTransportFactory.java +++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/util/TracHttpClientTransportFactory.java @@ -102,15 +102,15 @@ public class TracHttpClientTransportFactory implements XmlRpcTransportFactory { try { return method.getResponseBodyAsStream(); } catch (HttpException e) { - throw new XmlRpcClientException("Error in HTTP transport: " + e.getMessage(), e); + throw new XmlRpcClientException("Error in HTTP transport: " + e.getMessage(), e); //$NON-NLS-1$ } catch (IOException e) { - throw new XmlRpcClientException("I/O error in server communication: " + e.getMessage(), e); + throw new XmlRpcClientException("I/O error in server communication: " + e.getMessage(), e); //$NON-NLS-1$ } } @Override protected String getUserAgent() { - return WebUtil.getUserAgent(""); + return WebUtil.getUserAgent(""); //$NON-NLS-1$ } @Override @@ -174,7 +174,7 @@ public class TracHttpClientTransportFactory implements XmlRpcTransportFactory { } public String getContentType() { - return "text/xml"; + return "text/xml"; //$NON-NLS-1$ } public boolean isRepeatable() { @@ -222,10 +222,10 @@ public class TracHttpClientTransportFactory implements XmlRpcTransportFactory { if (t instanceof XmlRpcException) { throw (XmlRpcException) t; } else { - throw new XmlRpcException("Unexpected exception: " + t.getMessage(), t); + throw new XmlRpcException("Unexpected exception: " + t.getMessage(), t); //$NON-NLS-1$ } } catch (IOException e) { - throw new XmlRpcException("I/O error while communicating with HTTP server: " + e.getMessage(), e); + throw new XmlRpcException("I/O error while communicating with HTTP server: " + e.getMessage(), e); //$NON-NLS-1$ } } @@ -238,7 +238,7 @@ public class TracHttpClientTransportFactory implements XmlRpcTransportFactory { private AuthScheme authScheme; public TracHttpException(int responseCode) { - super(responseCode, "HTTP Error " + responseCode); + super(responseCode, "HTTP Error " + responseCode); //$NON-NLS-1$ } public AuthScheme getAuthScheme() { -- cgit v1.2.3