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, setColor
public 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)
IHyperlinkPresenter
install
in interface IHyperlinkPresenter
install
in class DefaultHyperlinkPresenter
viewer
- the text viewerpublic void uninstall()
IHyperlinkPresenter
uninstall
in interface IHyperlinkPresenter
uninstall
in class DefaultHyperlinkPresenter
public boolean canShowMultipleHyperlinks()
IHyperlinkPresenter
canShowMultipleHyperlinks
in interface IHyperlinkPresenter
canShowMultipleHyperlinks
in class DefaultHyperlinkPresenter
true
if this presenter can handle more than one hyperlinkpublic boolean canHideHyperlinks()
DefaultHyperlinkPresenter
canHideHyperlinks
in interface IHyperlinkPresenterExtension
canHideHyperlinks
in class DefaultHyperlinkPresenter
true
if the hyperlink manager can hide the current hyperlinkspublic void hideHyperlinks()
IHyperlinkPresenter
IHyperlinkPresenter.showHyperlinks(IHyperlink[])
.hideHyperlinks
in interface IHyperlinkPresenter
hideHyperlinks
in class DefaultHyperlinkPresenter
public void showHyperlinks(IHyperlink[] hyperlinks)
IHyperlinkPresenter
showHyperlinks
in interface IHyperlinkPresenter
showHyperlinks
in class DefaultHyperlinkPresenter
hyperlinks
- the hyperlinks to showpublic void showHyperlinks(IHyperlink[] activeHyperlinks, boolean takesFocusWhenVisible)
showHyperlinks
in interface IHyperlinkPresenterExtension2
activeHyperlinks
- 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, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.