|
||||||||||
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
org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration
public class 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
Constructor Summary | |
---|---|
StructuredTextViewerConfiguration()
Creates a structured text viewer configuration. |
Method Summary | |
---|---|
org.eclipse.jface.text.source.IAnnotationHover |
getAnnotationHover(org.eclipse.jface.text.source.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(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the configured partitioning for the given source viewer. |
int[] |
getConfiguredTextHoverStateMasks(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
|
org.eclipse.jface.text.contentassist.IContentAssistant |
getContentAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the content assistant ready to be used with the given source viewer. |
org.eclipse.jface.text.formatter.IContentFormatter |
getContentFormatter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the content formatter ready to be used with the given source viewer. |
org.eclipse.jface.text.hyperlink.IHyperlinkPresenter |
getHyperlinkPresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the hyperlink presenter for the given source viewer. |
org.eclipse.jface.text.IInformationControlCreator |
getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the information control creator. |
org.eclipse.jface.text.information.IInformationPresenter |
getInformationPresenter(org.eclipse.jface.text.source.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(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String partitionType)
Returns the line style providers that will be used for syntax highlighting in the given source viewer. |
org.eclipse.jface.text.presentation.IPresentationReconciler |
getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
StructuredTextViewer currently does not support presentation reconciler, so clients cannot override this method to provide their own presentation reconciler. |
org.eclipse.jface.text.quickassist.IQuickAssistAssistant |
getQuickAssistAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.reconciler.IReconciler |
getReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the reconciler ready to be used with the given source viewer. |
org.eclipse.jface.viewers.ILabelProvider |
getStatusLineLabelProvider(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.ITextHover |
getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType,
int stateMask)
|
org.eclipse.jface.text.IUndoManager |
getUndoManager(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the undo manager for the given source viewer. |
Methods inherited from class org.eclipse.ui.editors.text.TextSourceViewerConfiguration |
---|
getHyperlinkDetectors, getHyperlinkStateMask, getIndentPrefixes, getOverviewRulerAnnotationHover, getTabWidth, getTextHover |
Methods inherited from class org.eclipse.jface.text.source.SourceViewerConfiguration |
---|
getAutoEditStrategies, getAutoIndentStrategy, getConfiguredContentTypes, getDefaultPrefixes, getDoubleClickStrategy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StructuredTextViewerConfiguration()
Method Detail |
---|
public final org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getAnnotationHover
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
public final java.lang.String getConfiguredDocumentPartitioning(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getConfiguredDocumentPartitioning
in class org.eclipse.jface.text.source.SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
SourceViewerConfiguration.getConfiguredContentTypes(ISourceViewer)
public int[] getConfiguredTextHoverStateMasks(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
getConfiguredTextHoverStateMasks
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
public org.eclipse.jface.text.contentassist.IContentAssistant getContentAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Clients should generally not override this method. Instead, clients
wanting to add their own processors should override
getContentAssistProcessors(ISourceViewer, String)
getContentAssistant
in class org.eclipse.jface.text.source.SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
getContentAssistProcessors(ISourceViewer, String)
public org.eclipse.jface.text.formatter.IContentFormatter getContentFormatter(org.eclipse.jface.text.source.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.
getContentFormatter
in class org.eclipse.jface.text.source.SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
null
if formatting should
not be supportedpublic final org.eclipse.jface.text.hyperlink.IHyperlinkPresenter getHyperlinkPresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getHyperlinkPresenter
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
public final org.eclipse.jface.text.IInformationControlCreator getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getInformationControlCreator
in class org.eclipse.jface.text.source.SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
public final org.eclipse.jface.text.information.IInformationPresenter getInformationPresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Clients cannot override this method. Instead, clients wanting to add
their own information providers should override
getInformationProvider(ISourceViewer, String)
getInformationPresenter
in class org.eclipse.jface.text.source.SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
getInformationProvider(ISourceViewer, String)
public org.eclipse.wst.sse.ui.internal.provisional.style.LineStyleProvider[] getLineStyleProviders(org.eclipse.jface.text.source.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 org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getLineStyleProviders(ISourceViewer, String)
for
alternative way to provide highlighting information.
getPresentationReconciler
in class org.eclipse.jface.text.source.SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
getLineStyleProviders(ISourceViewer, String)
public org.eclipse.jface.text.quickassist.IQuickAssistAssistant getQuickAssistAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getQuickAssistAssistant
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
public final org.eclipse.jface.text.reconciler.IReconciler getReconciler(org.eclipse.jface.text.source.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.
getReconciler
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
public org.eclipse.jface.viewers.ILabelProvider getStatusLineLabelProvider(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
treeViewer
-
public org.eclipse.jface.text.ITextHover getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType, int stateMask)
getTextHover
in class org.eclipse.jface.text.source.SourceViewerConfiguration
public final org.eclipse.jface.text.IUndoManager getUndoManager(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getUndoManager
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
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 |