Class DefaultHyperlinkPresenter

java.lang.Object
org.eclipse.jface.text.hyperlink.DefaultHyperlinkPresenter
All Implemented Interfaces:
EventListener, IHyperlinkPresenter, IHyperlinkPresenterExtension, IDocumentListener, ITextInputListener, ITextPresentationListener, ITextViewerLifecycle, IPropertyChangeListener
Direct Known Subclasses:
MultipleHyperlinkPresenter

The default hyperlink presenter underlines the link and colors the line and the text with the given color.

It can only be used together with the HyperlinkManager.FIRST or the HyperlinkManager.LONGEST_REGION_FIRST hyperlink strategy.

Since:
3.1
  • Field Details

  • Constructor Details

    • DefaultHyperlinkPresenter

      public DefaultHyperlinkPresenter(IPreferenceStore store)
      Creates a new default hyperlink presenter which uses HYPERLINK_COLOR to read the color from the given preference store.
      Parameters:
      store - the preference store
    • DefaultHyperlinkPresenter

      public DefaultHyperlinkPresenter(Color color)
      Creates a new default hyperlink presenter.
      Parameters:
      color - the hyperlink color or null if the existing text color should be preserved; to be disposed by the caller
    • DefaultHyperlinkPresenter

      public DefaultHyperlinkPresenter(RGB color)
      Creates a new default hyperlink presenter.
      Parameters:
      color - the hyperlink color or null if the existing text color should be preserved
  • Method Details