public class MultipleHyperlinkPresenter extends DefaultHyperlinkPresenter implements IHyperlinkPresenterExtension2
HYPERLINK_COLOR, HYPERLINK_COLOR_SYSTEM_DEFAULT| Constructor and Description |
|---|
MultipleHyperlinkPresenter(IPreferenceStore store)
Creates a new multiple hyperlink presenter which uses
DefaultHyperlinkPresenter.HYPERLINK_COLOR to read the
color from the given preference store. |
MultipleHyperlinkPresenter(RGB color)
Creates a new multiple hyperlink presenter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHideHyperlinks()
Tells whether the currently shown hyperlinks
can be hidden.
|
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
IHyperlinkPresenter.showHyperlinks(IHyperlink[]). |
void |
install(ITextViewer viewer)
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 |
showHyperlinks(IHyperlink[] activeHyperlinks,
boolean takesFocusWhenVisible)
Tells this hyperlink presenter to show the given hyperlinks on the installed text viewer and
specifies whether or not the control takes focus when visible.
|
void |
uninstall()
Uninstalls this hyperlink presenter.
|
applyTextPresentation, documentAboutToBeChanged, documentChanged, inputDocumentAboutToBeChanged, inputDocumentChanged, propertyChange, setColorpublic MultipleHyperlinkPresenter(IPreferenceStore store)
DefaultHyperlinkPresenter.HYPERLINK_COLOR to read the
color from the given preference store.store - the preference storepublic MultipleHyperlinkPresenter(RGB color)
color - the hyperlink color, to be disposed by the callerpublic void install(ITextViewer viewer)
IHyperlinkPresenterinstall in interface IHyperlinkPresenterinstall in class DefaultHyperlinkPresenterviewer - the text viewerpublic void uninstall()
IHyperlinkPresenteruninstall in interface IHyperlinkPresenteruninstall in class DefaultHyperlinkPresenterpublic boolean canShowMultipleHyperlinks()
IHyperlinkPresentercanShowMultipleHyperlinks in interface IHyperlinkPresentercanShowMultipleHyperlinks in class DefaultHyperlinkPresentertrue if this presenter can handle more than one hyperlinkpublic boolean canHideHyperlinks()
DefaultHyperlinkPresentercanHideHyperlinks in interface IHyperlinkPresenterExtensioncanHideHyperlinks in class DefaultHyperlinkPresentertrue if the hyperlink manager can hide the current hyperlinkspublic void hideHyperlinks()
IHyperlinkPresenterIHyperlinkPresenter.showHyperlinks(IHyperlink[]).hideHyperlinks in interface IHyperlinkPresenterhideHyperlinks in class DefaultHyperlinkPresenterpublic void showHyperlinks(IHyperlink[] hyperlinks)
IHyperlinkPresentershowHyperlinks in interface IHyperlinkPresentershowHyperlinks in class DefaultHyperlinkPresenterhyperlinks - the hyperlinks to showpublic void showHyperlinks(IHyperlink[] activeHyperlinks, boolean takesFocusWhenVisible)
showHyperlinks in interface IHyperlinkPresenterExtension2activeHyperlinks - the hyperlinks to showtakesFocusWhenVisible - true if the control takes the focus when visible,
false otherwise. Will be ignored if there is only one hyperlink to
show.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.