Class JavadocUrlHandler
java.lang.Object
org.fife.rsta.ac.java.JavadocUrlHandler
- All Implemented Interfaces:
org.fife.ui.autocomplete.ExternalURLHandler
public class JavadocUrlHandler
extends Object
implements org.fife.ui.autocomplete.ExternalURLHandler
Handles hyperlinks that are clicked in Javadoc for code completions. It's
assumed that the links found were created via
Util.docCommentToHtml(String), so that things
such as "@see" links are interpreted properly.- Version:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringReturns the parent packagebackupCountlevels up from the package specified.private static StringReturns the anchor portion of a (relative) URL.private static String[]Gets the arguments from a method signature.private StringReturns the class for a completion (class completions return the class itself, member completions return the enclosing class).private JavaLanguageSupportReturns the Java language support.private StringgetPackage(org.fife.ui.autocomplete.Completion c, String desc) Returns the package of the specified completion.private booleanisRelativeUrl(String text) Returns whether the text is a relative URL to other Javadoc.voidurlClicked(HyperlinkEvent e, org.fife.ui.autocomplete.Completion c, org.fife.ui.autocomplete.DescWindowCallback callback)
-
Constructor Details
-
JavadocUrlHandler
public JavadocUrlHandler()
-
-
Method Details
-
doBackups
-
getJavaLanguageSupport
Returns the Java language support.- Returns:
- The Java language support
-
getAnchor
-
getArgs
-
getClass
-
getPackage
-
isRelativeUrl
Returns whether the text is a relative URL to other Javadoc.- Parameters:
text- A link in Javadoc.- Returns:
- Whether the link is a relative path to more Javadoc.
-
urlClicked
public void urlClicked(HyperlinkEvent e, org.fife.ui.autocomplete.Completion c, org.fife.ui.autocomplete.DescWindowCallback callback) - Specified by:
urlClickedin interfaceorg.fife.ui.autocomplete.ExternalURLHandler
-