|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.source.SourceViewerConfiguration
org.eclipse.ui.editors.text.TextSourceViewerConfiguration
Source viewer configuration for the text editor.
Field Summary | |
---|---|
protected IPreferenceStore |
fPreferenceStore
The preference store used to initialize this configuration. |
Constructor Summary | |
---|---|
TextSourceViewerConfiguration()
Creates a text source viewer configuration. |
|
TextSourceViewerConfiguration(IPreferenceStore preferenceStore)
Creates a text source viewer configuration and initializes it with the given preference store. |
Method Summary | |
---|---|
protected static int |
computeStateMask(String modifiers)
Computes the state mask out of the given modifiers string. |
protected static int |
findLocalizedModifier(String modifierName)
Maps the localized modifier name to a code in the same manner as #findModifier. |
IAnnotationHover |
getAnnotationHover(ISourceViewer sourceViewer)
Returns the annotation hover which will provide the information to be shown in a hover popup window when requested for the given source viewer. |
IHyperlinkDetector[] |
getHyperlinkDetectors(ISourceViewer sourceViewer)
Returns the hyperlink detectors which be used to detect hyperlinks in the given source viewer. |
IHyperlinkPresenter |
getHyperlinkPresenter(ISourceViewer sourceViewer)
Returns the hyperlink presenter for the given source viewer. |
int |
getHyperlinkStateMask(ISourceViewer sourceViewer)
Returns the SWT event state mask which in combination with the left mouse button activates hyperlinking. |
int |
getTabWidth(ISourceViewer sourceViewer)
Returns the visual width of the tab character. |
IUndoManager |
getUndoManager(ISourceViewer sourceViewer)
Returns the undo manager for the given source viewer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected IPreferenceStore fPreferenceStore
Note: protected since 3.1
Constructor Detail |
public TextSourceViewerConfiguration()
public TextSourceViewerConfiguration(IPreferenceStore preferenceStore)
preferenceStore
- the preference store used to initialize this configurationMethod Detail |
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer)
SourceViewerConfiguration
null
.
getAnnotationHover
in class SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
null
if no hover support should be installedpublic int getTabWidth(ISourceViewer sourceViewer)
SourceViewerConfiguration
getTabWidth
in class SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
public IHyperlinkDetector[] getHyperlinkDetectors(ISourceViewer sourceViewer)
SourceViewerConfiguration
getHyperlinkDetectors
in class SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
null
if no hyperlink support should be installedpublic int getHyperlinkStateMask(ISourceViewer sourceViewer)
SourceViewerConfiguration
SWT.MOD1
.
getHyperlinkStateMask
in class SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
public IHyperlinkPresenter getHyperlinkPresenter(ISourceViewer sourceViewer)
SourceViewerConfiguration
DefaultHyperlinkPresenter
.
getHyperlinkPresenter
in class SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
null
if no hyperlink support should be installedprotected static final int findLocalizedModifier(String modifierName)
modifierName
- the modifier name
0
if no match was foundprotected static final int computeStateMask(String modifiers)
modifiers
- a string containing modifiers
public IUndoManager getUndoManager(ISourceViewer sourceViewer)
SourceViewerConfiguration
DefaultUndoManager
whose
history length is set to 25.
getUndoManager
in class SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
null
if no undo/redo should not be supported
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.