Bug 139528 [Browser] Error message should be improved
I got the following error in my log. The message is probably allright except for the trailing null. eclipse.buildId=I20060428-1315 java.fullversion=J2RE 1.4.2 IBM build cxia32142-20050609 (JIT enabled: jitc) BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Command-line arguments: -os linux -ws gtk -arch x86 -debug -consolelog Warning Mon May 01 12:39:50 EDT 2006 Internal browser is not available: null
bundles/org.eclipse.ui.browser/src/org/eclipse/ui/internal/browser/WebBrowserUtil.java
public static String decodeId(String encodedId) {
		int sep = encodedId.lastIndexOf(STYLE_SEP);
		if (sep != -1) {
			return encodedId.substring(0, sep);
		}
		return encodedId;
	}
	
	public static String createParameterString(String parameters, String urlText) {
		String params = parameters;
		String url = urlText;
		if (url == null) {
			url = ""; 
		}
		if (params == null)
			params = ""; 
		int urlIndex = params.indexOf(IBrowserDescriptor.URL_PARAMETER);
		if (urlIndex >= 0)
			params = params.substring(0, urlIndex)
					+ url
					+ params.substring(urlIndex
							+ IBrowserDescriptor.URL_PARAMETER.length());
		else {
			if (params.length() != 0 && !params.endsWith(" ")) 
				params += " ";  
			params += url;
		}
		return params;
	}
}