Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'codan/org.eclipse.cdt.codan.examples/src/org/eclipse/cdt/codan/examples/uicontrib/FlexlintHelpLink.java')
-rw-r--r--codan/org.eclipse.cdt.codan.examples/src/org/eclipse/cdt/codan/examples/uicontrib/FlexlintHelpLink.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/codan/org.eclipse.cdt.codan.examples/src/org/eclipse/cdt/codan/examples/uicontrib/FlexlintHelpLink.java b/codan/org.eclipse.cdt.codan.examples/src/org/eclipse/cdt/codan/examples/uicontrib/FlexlintHelpLink.java
index af2668969a9..15835090148 100644
--- a/codan/org.eclipse.cdt.codan.examples/src/org/eclipse/cdt/codan/examples/uicontrib/FlexlintHelpLink.java
+++ b/codan/org.eclipse.cdt.codan.examples/src/org/eclipse/cdt/codan/examples/uicontrib/FlexlintHelpLink.java
@@ -1,7 +1,5 @@
package org.eclipse.cdt.codan.examples.uicontrib;
-import java.net.MalformedURLException;
-import java.net.URL;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -28,12 +26,11 @@ public class FlexlintHelpLink extends AbstractCodanProblemDetailsProvider {
}
@Override
- public URL getHelpURL() {
+ public String getStyledProblemDescription() {
String helpId = parseHelpId(getProblemMessage());
- try {
- return new URL("http://www.gimpel-online.com/MsgRef.html#" + helpId); //$NON-NLS-1$
- } catch (MalformedURLException e) {
- return null;
- }
+ String url = "http://www.gimpel-online.com/MsgRef.html#" + helpId;
+ return "<a href=\"" + url + "\">" + url + "</a>";
}
+
+
}

Back to the top