Eclipse Platform
Release 3.1

org.eclipse.jface.text.hyperlink
Interface IHyperlinkPresenter

All Known Implementing Classes:
DefaultHyperlinkPresenter

public interface IHyperlinkPresenter

A hyperlink presenter shows hyperlinks on the installed text viewer and allows to pick one on of the hyperlinks.

Clients may implement this interface. A default implementation is provided through DefaultHyperlinkPresenter.

Since:
3.1

Method Summary
 boolean canShowMultipleHyperlinks()
          Tells whether this presenter is able to handle more than one hyperlink.
 void hideHyperlinks()
          Tells this hyperlink presenter to hide the hyperlinks requested to be shown by showHyperlinks(IHyperlink[]).
 void install(ITextViewer textViewer)
          Installs this hyperlink presenter on the given text viewer.
 void showHyperlinks(IHyperlink[] hyperlinks)
          Tells this hyperlink presenter to show the given hyperlinks on the installed text viewer.
 void uninstall()
          Uninstalls this hyperlink presenter.
 

Method Detail

canShowMultipleHyperlinks

public boolean canShowMultipleHyperlinks()
Tells whether this presenter is able to handle more than one hyperlink.

Returns:
true if this presenter can handle more than one hyperlink

showHyperlinks

public void showHyperlinks(IHyperlink[] hyperlinks)
                    throws IllegalArgumentException
Tells this hyperlink presenter to show the given hyperlinks on the installed text viewer.

Parameters:
hyperlinks - the hyperlinks to show
Throws:
IllegalArgumentException - if

hideHyperlinks

public void hideHyperlinks()
Tells this hyperlink presenter to hide the hyperlinks requested to be shown by showHyperlinks(IHyperlink[]).


install

public void install(ITextViewer textViewer)
Installs this hyperlink presenter on the given text viewer.

Parameters:
textViewer - the text viewer

uninstall

public void uninstall()
Uninstalls this hyperlink presenter.


Eclipse Platform
Release 3.1

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.