Skip to content

Commit 0e399fc

Browse files
committed
Fix link to current "Evolving Java-based APIs"
Wiki is read only with multiple warnings being what one sees before figuring the redirects.
1 parent e62be0b commit 0e399fc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

apitools/org.eclipse.pde.api.tools.ui/src/org/eclipse/pde/api/tools/ui/internal/preferences/ApiErrorsWarningsConfigurationBlock.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2007, 2022 IBM Corporation and others.
2+
* Copyright (c) 2007, 2025 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -13,7 +13,7 @@
1313
*******************************************************************************/
1414
package org.eclipse.pde.api.tools.ui.internal.preferences;
1515

16-
import java.net.URL;
16+
import java.net.URI;
1717
import java.text.MessageFormat;
1818
import java.util.ArrayList;
1919
import java.util.HashMap;
@@ -861,13 +861,14 @@ private Composite createPage(int tabID, TabFolder folder, String name, String de
861861
if (tabID == COMPATIBILITY_PAGE_ID) {
862862
Link link = new Link(page, SWT.CENTER);
863863
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$
865865
+ PreferenceMessages.ApiErrorsWarningsConfigurationBlock_4 + "</a>"; //$NON-NLS-1$
866866
link.setText(NLS.bind(PreferenceMessages.ApiErrorsWarningsConfigurationBlock_5, linkHttp));
867867
link.setSize(400, 100);
868868
link.addSelectionListener(SelectionListener.widgetSelectedAdapter(e -> {
869869
try {
870-
PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser().openURL(new URL(e.text));
870+
PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser()
871+
.openURL(URI.create(e.text).toURL());
871872
} catch (Exception ex) {
872873
}
873874
}));

0 commit comments

Comments
 (0)