don't show useless system error message when unresolved relative URL is clicked at in Quick Doc

This commit is contained in:
Dmitry Batrak
2015-06-09 17:36:57 +03:00
parent 3ce0b7fe81
commit 28d2bd0bca
2 changed files with 6 additions and 1 deletions
@@ -952,11 +952,15 @@ public class DocumentationManager extends DockablePopupManager<DocumentationComp
);
String url1 = urls != null && !urls.isEmpty() ? urls.get(0) : url;
BrowserUtil.browse(url1);
return "";
}
else if (url.startsWith("..")) {
return CodeInsightBundle.message("javadoc.error.resolving.url", url);
}
else {
BrowserUtil.browse(url);
return "";
}
return "";
}
@Override
@@ -518,3 +518,4 @@ dialog.edit.template.checkbox.xsl.text=XSL Text
highlight.imported.classes.chooser.title=Choose Imported Classes to Highlight
highlight.imported.members.chooser.title=Choose Imported Members to Highlight
javadoc.resolved.value=Resolved value\:
javadoc.error.resolving.url=Couldn''t resolve URL <i>{0}</i> <p>Configuring paths to API docs in <a href="open://Project Settings">project settings</a> might help