Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlena Laskavaia2010-04-29 12:34:18 -0400
committerAlena Laskavaia2010-04-29 12:34:18 -0400
commit8ece4ead1a6fd27bfb1f2b4bdfa7fd2528fc022b (patch)
tree9e13a98309fcc65c9682609cc1e4b323a380fc20 /codan/org.eclipse.cdt.codan.examples
parent4fd94ed31f828a06a579ebfa19b152dcbc35dddf (diff)
downloadorg.eclipse.cdt-8ece4ead1a6fd27bfb1f2b4bdfa7fd2528fc022b.tar.gz
org.eclipse.cdt-8ece4ead1a6fd27bfb1f2b4bdfa7fd2528fc022b.tar.xz
org.eclipse.cdt-8ece4ead1a6fd27bfb1f2b4bdfa7fd2528fc022b.zip
- simplified API for problem details extensions
Diffstat (limited to 'codan/org.eclipse.cdt.codan.examples')
-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 af2668969a..1583509014 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