mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
open mail client on mailto: links
This commit is contained in:
@@ -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
|
||||
}
|
||||
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user