|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A hyperlink presenter shows hyperlinks on the installed text viewer and allows to pick one on of the hyperlinks.
In order to provide backward compatibility for clients of IHyperlinkDetector
, extension
interfaces are used to provide a means of evolution. The following extension interfaces exist:
IHyperlinkPresenterExtension
since version 3.4,
adds the ability to query whether the currently shown hyperlinks
can be hidden.
Clients may implement this interface. A default implementation is provided
through DefaultHyperlinkPresenter
.
IHyperlinkPresenterExtension
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 |
public boolean canShowMultipleHyperlinks()
true
if this presenter can handle more than one hyperlinkpublic void showHyperlinks(IHyperlink[] hyperlinks) throws IllegalArgumentException
hyperlinks
- the hyperlinks to show
IllegalArgumentException
- if
hyperlinks
is emptycanShowMultipleHyperlinks()
returns false
and hyperlinks
contains more than one elementpublic void hideHyperlinks()
showHyperlinks(IHyperlink[])
.
public void install(ITextViewer textViewer)
textViewer
- the text viewerpublic void uninstall()
|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.