|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.eclipse.ui.texteditor.SourceViewerDecorationSupport
Support for source viewer decoration.
| Constructor Summary | |
SourceViewerDecorationSupport(ISourceViewer sourceViewer,
IOverviewRuler overviewRuler,
IAnnotationAccess annotationAccess,
ISharedTextColors sharedTextColors)
Creates a new decoration support for the given viewer. |
|
| Method Summary | |
void |
dispose()
Disposes this decoration support. |
protected void |
handlePreferenceStoreChanged(PropertyChangeEvent event)
|
void |
hideAnnotationOverview()
Hides the annotation overview. |
void |
install(IPreferenceStore store)
Installs this decoration support on th given preference store. |
void |
setAnnotationPainterPreferenceKeys(Object type,
String colorKey,
String editorKey,
String overviewRulerKey,
int layer)
Sets the preference keys for the annotation painter. |
void |
setAnnotationPreference(AnnotationPreference info)
Sets the preference info for the annotation painter. |
void |
setCharacterPairMatcher(ICharacterPairMatcher pairMatcher)
Sets the character pair matcher for the matching character painter. |
void |
setCursorLinePainterPreferenceKeys(String enableKey,
String colorKey)
Sets the preference keys for the cursor line painter. |
void |
setMarginPainterPreferenceKeys(String enableKey,
String colorKey,
String columnKey)
Sets the preference keys for the margin painter. |
void |
setMatchingCharacterPainterPreferenceKeys(String enableKey,
String colorKey)
Sets the preference keys for the matching character painter. |
void |
setSymbolicFontName(String symbolicFontName)
Sets the symbolic font name that is used for computing the margin width. |
void |
uninstall()
Uninstalls this support from the preference store it has previously been installed on. |
void |
updateOverviewDecorations()
Updates the annotation overview for all configured annotation types. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SourceViewerDecorationSupport(ISourceViewer sourceViewer,
IOverviewRuler overviewRuler,
IAnnotationAccess annotationAccess,
ISharedTextColors sharedTextColors)
sourceViewer - the source vieweroverviewRuler - the viewer's overview rulerannotationAccess - the annotation accesssharedTextColors - the shared text color manager| Method Detail |
public void install(IPreferenceStore store)
store - the preference storepublic void updateOverviewDecorations()
public void uninstall()
public void dispose()
uninstall.
public void setCharacterPairMatcher(ICharacterPairMatcher pairMatcher)
pairMatcher -
public void setAnnotationPainterPreferenceKeys(Object type,
String colorKey,
String editorKey,
String overviewRulerKey,
int layer)
type - the annotation typecolorKey - the preference key for the coloreditorKey - the preference key for the presentation in the text areaoverviewRulerKey - the preference key for the presentation in the overview rulerlayer - the layerpublic void setAnnotationPreference(AnnotationPreference info)
info - the preference info to be set
public void setCursorLinePainterPreferenceKeys(String enableKey,
String colorKey)
enableKey - the preference key for the cursor line paintercolorKey - the preference key for the color used by the cursor line
painter
public void setMarginPainterPreferenceKeys(String enableKey,
String colorKey,
String columnKey)
enableKey - the preference key for the margin paintercolorKey - the preference key for the color used by the margin
paintercolumnKey - the preference key for the margin column
public void setMatchingCharacterPainterPreferenceKeys(String enableKey,
String colorKey)
enableKey - the preference key for the matching character paintercolorKey - the preference key for the color used by the matching
character painterpublic void setSymbolicFontName(String symbolicFontName)
symbolicFontName - protected void handlePreferenceStoreChanged(PropertyChangeEvent event)
public void hideAnnotationOverview()
|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||