|
LPEX 3.6.8 |
||||||||
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(IPreferenceStore preferenceStore)
Creates a new default hyperlink presenter. |
Method Summary | |
---|---|
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 storeMethod 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)
|
LPEX 3.6.8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |