Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2005 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2006 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 12-18
Link Here
|
12 |
|
12 |
|
13 |
import java.net.MalformedURLException; |
13 |
import java.net.MalformedURLException; |
14 |
import java.net.URL; |
14 |
import java.net.URL; |
15 |
import java.net.URLDecoder; |
|
|
16 |
|
15 |
|
17 |
import org.eclipse.core.runtime.IStatus; |
16 |
import org.eclipse.core.runtime.IStatus; |
18 |
import org.eclipse.core.runtime.Status; |
17 |
import org.eclipse.core.runtime.Status; |
Lines 31-36
Link Here
|
31 |
import org.eclipse.swt.widgets.Label; |
30 |
import org.eclipse.swt.widgets.Label; |
32 |
import org.eclipse.swt.widgets.Shell; |
31 |
import org.eclipse.swt.widgets.Shell; |
33 |
import org.eclipse.swt.widgets.Text; |
32 |
import org.eclipse.swt.widgets.Text; |
|
|
33 |
import org.eclipse.update.internal.ui.URLCoder; |
34 |
import org.eclipse.update.internal.ui.UpdateUI; |
34 |
import org.eclipse.update.internal.ui.UpdateUI; |
35 |
import org.eclipse.update.internal.ui.UpdateUIMessages; |
35 |
import org.eclipse.update.internal.ui.UpdateUIMessages; |
36 |
import org.eclipse.update.internal.ui.model.SiteBookmark; |
36 |
import org.eclipse.update.internal.ui.model.SiteBookmark; |
Lines 155-161
Link Here
|
155 |
} |
155 |
} |
156 |
|
156 |
|
157 |
try { |
157 |
try { |
158 |
URL newURL = new URL(URLDecoder.decode(url.getText().trim(), "UTF-8")); //$NON-NLS-1$ |
158 |
URL newURL = new URL(URLCoder.decode(url.getText().trim())); |
159 |
if (url.getEditable()) { |
159 |
if (url.getEditable()) { |
160 |
okButton.setEnabled(!newURL.getProtocol().equals("file")); //$NON-NLS-1$ |
160 |
okButton.setEnabled(!newURL.getProtocol().equals("file")); //$NON-NLS-1$ |
161 |
if (newURL.getProtocol().equals("file")) { //$NON-NLS-1$ |
161 |
if (newURL.getProtocol().equals("file")) { //$NON-NLS-1$ |