| author | Markus Keller | 2012-10-26 16:53:24 (EDT) |
|---|---|---|
| committer | Curtis Windatt | 2012-10-26 16:53:24 (EDT) |
| commit | 0a800b5841a9fa37539870f6e5be4c6afcd81e05 (patch) (side-by-side diff) | |
| tree | 55e334090c6a2d8e8b25fba122d20034153cab8a | |
| parent | 7d2f8119fd3128a79adeba7ab542fce60baa3630 (diff) | |
| download | eclipse.pde.ui-0a800b5841a9fa37539870f6e5be4c6afcd81e05.zip eclipse.pde.ui-0a800b5841a9fa37539870f6e5be4c6afcd81e05.tar.gz eclipse.pde.ui-0a800b5841a9fa37539870f6e5be4c6afcd81e05.tar.bz2 | |
Bug 392950 - OpenSchemaAction does not handle locations with + in itv20121026-205324I20121029-0800I20121028-2000
| -rw-r--r-- | ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/actions/OpenSchemaAction.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/actions/OpenSchemaAction.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/actions/OpenSchemaAction.java index 2025ce1..58fe4f1 100644 --- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/actions/OpenSchemaAction.java +++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/actions/OpenSchemaAction.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2011 IBM Corporation and others. + * Copyright (c) 2006, 2012 IBM Corporation 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 @@ -12,7 +12,6 @@ package org.eclipse.pde.internal.ui.editor.actions; import java.io.File; -import java.io.UnsupportedEncodingException; import java.net.*; import org.eclipse.core.resources.*; import org.eclipse.core.runtime.IPath; @@ -185,8 +184,8 @@ public class OpenSchemaAction extends Action { String rawURL = schemaURL.toString(); String path = null; try { - path = URLDecoder.decode(schemaURL.getPath(), "UTF-8"); //$NON-NLS-1$ - } catch (UnsupportedEncodingException e) { + path = schemaURL.toURI().getPath(); + } catch (URISyntaxException e) { } if (path != null) { if (rawURL.startsWith("jar")) { //$NON-NLS-1$ |

