Module platform

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
Author:
Robert Futrell
  • Method Summary

    Modifier and Type
    Method
    Description
    Hook to return an alternate URL to navigate to when a URL is clicked in an RSyntaxTextArea instance.
  • Method Details

    • possiblyRedirect

      URL possiblyRedirect(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.