open mail client on mailto: links

This commit is contained in:
Maxim.Mossienko
2014-12-22 13:40:05 +01:00
parent ad5c077e06
commit 7126e14983
3 changed files with 6 additions and 3 deletions
@@ -5,4 +5,5 @@
class LinksInJavaDoc {
// Since Java 7 classloading is parallel on parallel capable classloader (http://docs.oracle.com/javase/7/docs/technotes/guides/lang/cl-mt.html)
// Parallel classloading avoids deadlocks like https://youtrack.jetbrains.com/issue/IDEA-131621,
// Use mailto:webmaster@jetbrains.com to report abuse
}
@@ -130,7 +130,9 @@ public class JavadocHighlightingTest extends LightDaemonAnalyzerTestCase {
String[] targets = {"http://www.unicode.org/unicode/standard/standard.html",
"http://docs.oracle.com/javase/7/docs/technotes/guides/lang/cl-mt.html",
"https://youtrack.jetbrains.com/issue/IDEA-131621"};
"https://youtrack.jetbrains.com/issue/IDEA-131621",
"mailto:webmaster@jetbrains.com"
};
assertTrue(refs.size() == targets.length);
int i = 0;
@@ -31,7 +31,7 @@ import java.util.List;
public class GlobalPathReferenceProvider implements PathReferenceProvider {
@NonNls private static final String[] PREFIXES = {
"mailto:", "tel:", "sms:", "skype:", "data:", "xmpp:"
"tel:", "sms:", "skype:", "data:", "xmpp:"
};
public static boolean startsWithAllowedPrefix(String s) {
@@ -72,7 +72,7 @@ public class GlobalPathReferenceProvider implements PathReferenceProvider {
}
public static boolean isWebReferenceUrl(String url) {
return url.startsWith("http://") || url.startsWith("https://") || url.startsWith("about:");
return url.startsWith("http://") || url.startsWith("https://") || url.startsWith("about:") || url.startsWith("mailto:");
}
@Override