Interface LinkRedirector


  • public interface LinkRedirector
    Possibly redirects one URL to another. Useful if you want "external" URL's in code completion documentation to point to a local copy instead, for example.
    Version:
    1.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.net.URL possiblyRedirect​(java.net.URL original)
      Hook to return an alternate URL to navigate to when a URL is clicked in an RSyntaxTextArea instance.
    • Method Detail

      • possiblyRedirect

        java.net.URL possiblyRedirect​(java.net.URL original)
        Hook to return an alternate URL to navigate to when a URL is clicked in an RSyntaxTextArea instance.
        Parameters:
        original - The original URL, e.g. from a HyperlinkEvent.
        Returns:
        The link to redirect to, or null if the original URL should still be used.