|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTextSourceViewerConfiguration
org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration
Configuration for the source viewer used by StructuredTextEditor.
Note: While ISourceViewer is passed in for each get configuration, clients
should create a new viewer configuration instance for each instance of
source viewer as some methods return the same instance of an object,
regardless of the sourceviewer.
Clients should subclass and override just those methods which must be specific to their needs.
StructuredTextEditor
,
StructuredTextViewer
,
Serialized FormConstructor Summary | |
---|---|
StructuredTextViewerConfiguration()
Creates a structured text viewer configuration. |
Method Summary | |
---|---|
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. |
java.lang.String |
getConfiguredDocumentPartitioning(ISourceViewer sourceViewer)
Returns the configured partitioning for the given source viewer. |
int[] |
getConfiguredTextHoverStateMasks(ISourceViewer sourceViewer,
java.lang.String contentType)
|
IContentAssistant |
getContentAssistant(ISourceViewer sourceViewer)
Returns the content assistant ready to be used with the given source viewer. |
IContentFormatter |
getContentFormatter(ISourceViewer sourceViewer)
Returns the content formatter ready to be used with the given source viewer. |
IHyperlinkPresenter |
getHyperlinkPresenter(ISourceViewer sourceViewer)
Returns the hyperlink presenter for the given source viewer. |
IInformationControlCreator |
getInformationControlCreator(ISourceViewer sourceViewer)
Returns the information control creator. |
IInformationPresenter |
getInformationPresenter(ISourceViewer sourceViewer)
Returns the information presenter ready to be used with the given source viewer. |
org.eclipse.wst.sse.ui.internal.provisional.style.LineStyleProvider[] |
getLineStyleProviders(ISourceViewer sourceViewer,
java.lang.String partitionType)
Returns the line style providers that will be used for syntax highlighting in the given source viewer. |
IPresentationReconciler |
getPresentationReconciler(ISourceViewer sourceViewer)
StructuredTextViewer currently does not support presentation reconciler, so clients cannot override this method to provide their own presentation reconciler. |
IReconciler |
getReconciler(ISourceViewer sourceViewer)
Returns the reconciler ready to be used with the given source viewer. |
ITextHover |
getTextHover(ISourceViewer sourceViewer,
java.lang.String contentType,
int stateMask)
|
IUndoManager |
getUndoManager(ISourceViewer sourceViewer)
Returns the undo manager for the given source viewer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StructuredTextViewerConfiguration()
Method Detail |
public final IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer)
sourceViewer
- the source viewer to be configured by this configuration
public final java.lang.String getConfiguredDocumentPartitioning(ISourceViewer sourceViewer)
sourceViewer
- the source viewer to be configured by this configuration
#getConfiguredContentTypes(ISourceViewer)
public int[] getConfiguredTextHoverStateMasks(ISourceViewer sourceViewer, java.lang.String contentType)
public final IContentAssistant getContentAssistant(ISourceViewer sourceViewer)
Clients cannot override this method. Instead, clients wanting to add
their own processors should override
getContentAssistProcessors(ISourceViewer, String)
sourceViewer
- the source viewer to be configured by this configuration
#getContentAssistProcessors(ISourceViewer, String)
public IContentFormatter getContentFormatter(ISourceViewer sourceViewer)
It is not recommended that clients override this method as it may
become final
in the future and replaced by an extensible
framework.
sourceViewer
- the source viewer to be configured by this configuration
null
if formatting should
not be supportedpublic final IHyperlinkPresenter getHyperlinkPresenter(ISourceViewer sourceViewer)
sourceViewer
- the source viewer to be configured by this configuration
public final IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer)
sourceViewer
- the source viewer to be configured by this configuration
public final IInformationPresenter getInformationPresenter(ISourceViewer sourceViewer)
Clients cannot override this method. Instead, clients wanting to add
their own information providers should override
getInformationProvider(ISourceViewer, String)
sourceViewer
- the source viewer to be configured by this configuration
#getInformationProvider(ISourceViewer, String)
public org.eclipse.wst.sse.ui.internal.provisional.style.LineStyleProvider[] getLineStyleProviders(ISourceViewer sourceViewer, java.lang.String partitionType)
Not fully API since return type LineStyleProvider is not API.
sourceViewer
- the source viewer to be configured by this configurationpartitionType
- the partition type for which the lineStyleProviders are
applicable
public final IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer)
getLineStyleProviders(ISourceViewer, String)
for
alternative way to provide highlighting information.
sourceViewer
- the source viewer to be configured by this configuration
getLineStyleProviders(ISourceViewer, String)
public final IReconciler getReconciler(ISourceViewer sourceViewer)
Clients cannot override this method. Instead, clients wanting to add
their own reconciling strategy should use the
org.eclipse.wst.sse.ui.extensions.sourcevalidation
extension point.
sourceViewer
- the source viewer to be configured by this configuration
public ITextHover getTextHover(ISourceViewer sourceViewer, java.lang.String contentType, int stateMask)
public final IUndoManager getUndoManager(ISourceViewer sourceViewer)
sourceViewer
- the source viewer to be configured by this configuration
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |