|
LPEX 4.4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.lpex.alef.LpexDefaultHyperlinkPresenter
public class LpexDefaultHyperlinkPresenter
The default hyperlink presenter shows one hyperlink in one window of an LPEX source viewer. The default implementation of LpexSourceViewerConfiguration#getHyperlinkPresenter() returns a new instance of this class.
This class uses Eclipse's DefaultHyperlinkPresenter.HYPERLINK_COLOR as the named preference for the color used for hyperlinks.
| Constructor Summary | |
|---|---|
LpexDefaultHyperlinkPresenter(Color color)
Creates a new default hyperlink presenter. |
|
LpexDefaultHyperlinkPresenter(IPreferenceStore preferenceStore)
Creates a new default hyperlink presenter. |
|
LpexDefaultHyperlinkPresenter(RGB rgb)
Creates a new default hyperlink presenter. |
|
| Method Summary | |
|---|---|
boolean |
canHideHyperlinks()
|
boolean |
canShowMultipleHyperlinks()
The default implementation of this class returns false,
as it handles only one hyperlink at a time. |
void |
hideHyperlinks()
Stops showing the active hyperlink. |
void |
install(ITextViewer textViewer)
Installs this hyperlink presenter in the given LpexTextViewer. |
void |
propertyChange(PropertyChangeEvent e)
Listens to changes to hyperlink's color in the preference store. |
void |
setColor(Color color)
Sets the color for the hyperlink. |
void |
showHyperlinks(IHyperlink[] hyperlinks)
Shows the first in the given hyperlinks array. |
void |
uninstall()
Uninstalls this hyperlink presenter from its associated LpexTextViewer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LpexDefaultHyperlinkPresenter(IPreferenceStore preferenceStore)
DefaultHyperlinkPresenter
to read the hyperlink color from the given preference store.
preferenceStore - the preference storepublic LpexDefaultHyperlinkPresenter(Color color)
color - the hyperlink color, must be disposed by the callerpublic LpexDefaultHyperlinkPresenter(RGB rgb)
rgb - the hyperlink color's RGB description| Method Detail |
|---|
public void setColor(Color color)
color - the hyperlink color, must be disposed by the callerpublic boolean canShowMultipleHyperlinks()
false,
as it handles only one hyperlink at a time.
public void install(ITextViewer textViewer)
textViewer - the LpexTextViewer to install inpublic void uninstall()
public void showHyperlinks(IHyperlink[] hyperlinks)
public void hideHyperlinks()
public void propertyChange(PropertyChangeEvent e)
public boolean canHideHyperlinks()
IHyperlinkPresenterExtension
|
LPEX 4.4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||