|
1 | 1 | /******************************************************************************* |
2 | | - * Copyright (c) 2007, 2022 IBM Corporation and others. |
| 2 | + * Copyright (c) 2007, 2025 IBM Corporation and others. |
3 | 3 | * |
4 | 4 | * This program and the accompanying materials |
5 | 5 | * are made available under the terms of the Eclipse Public License 2.0 |
|
13 | 13 | *******************************************************************************/ |
14 | 14 | package org.eclipse.pde.api.tools.ui.internal.preferences; |
15 | 15 |
|
16 | | -import java.net.URL; |
| 16 | +import java.net.URI; |
17 | 17 | import java.text.MessageFormat; |
18 | 18 | import java.util.ArrayList; |
19 | 19 | import java.util.HashMap; |
@@ -861,13 +861,14 @@ private Composite createPage(int tabID, TabFolder folder, String name, String de |
861 | 861 | if (tabID == COMPATIBILITY_PAGE_ID) { |
862 | 862 | Link link = new Link(page, SWT.CENTER); |
863 | 863 | link.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 7)); |
864 | | - String linkHttp = "<a href=\"https://wiki.eclipse.org/Evolving_Java-based_APIs_2\">" //$NON-NLS-1$ |
| 864 | + String linkHttp = "<a href=\"https://github.com/eclipse-platform/eclipse.platform/blob/master/docs/Evolving-Java-based-APIs-2.md\">" //$NON-NLS-1$ |
865 | 865 | + PreferenceMessages.ApiErrorsWarningsConfigurationBlock_4 + "</a>"; //$NON-NLS-1$ |
866 | 866 | link.setText(NLS.bind(PreferenceMessages.ApiErrorsWarningsConfigurationBlock_5, linkHttp)); |
867 | 867 | link.setSize(400, 100); |
868 | 868 | link.addSelectionListener(SelectionListener.widgetSelectedAdapter(e -> { |
869 | 869 | try { |
870 | | - PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser().openURL(new URL(e.text)); |
| 870 | + PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser() |
| 871 | + .openURL(URI.create(e.text).toURL()); |
871 | 872 | } catch (Exception ex) { |
872 | 873 | } |
873 | 874 | })); |
|
0 commit comments