org.eclipse.wst.css.ui
Class StructuredTextViewerConfigurationCSS

java.lang.Object
  extended by org.eclipse.jface.text.source.SourceViewerConfiguration
      extended by org.eclipse.ui.editors.text.TextSourceViewerConfiguration
          extended by org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration
              extended by org.eclipse.wst.css.ui.StructuredTextViewerConfigurationCSS

public class StructuredTextViewerConfigurationCSS
extends StructuredTextViewerConfiguration

Configuration for a source viewer which shows CSS.

Clients can subclass and override just those methods which must be specific to their needs.

Since:
1.0
See Also:
StructuredTextViewerConfiguration

Constructor Summary
StructuredTextViewerConfigurationCSS()
          Create new instance of StructuredTextViewerConfigurationCSS
 
Method Summary
 org.eclipse.jface.text.IAutoEditStrategy[] getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
           
 java.lang.String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
           
 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.
 java.lang.String[] getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
           
 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.
 
Methods inherited from class org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration
getAnnotationHover, getConfiguredDocumentPartitioning, getConfiguredTextHoverStateMasks, getContentAssistant, getHyperlinkPresenter, getInformationControlCreator, getInformationPresenter, getPresentationReconciler, getQuickAssistAssistant, getReconciler, getStatusLineLabelProvider, getTextHover, getUndoManager
 
Methods inherited from class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
getHyperlinkDetectors, getHyperlinkStateMask, getOverviewRulerAnnotationHover, getTabWidth, getTextHover
 
Methods inherited from class org.eclipse.jface.text.source.SourceViewerConfiguration
getAutoIndentStrategy, getDefaultPrefixes, getDoubleClickStrategy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StructuredTextViewerConfigurationCSS

public StructuredTextViewerConfigurationCSS()
Create new instance of StructuredTextViewerConfigurationCSS

Method Detail

getAutoEditStrategies

public org.eclipse.jface.text.IAutoEditStrategy[] getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                                                        java.lang.String contentType)
Overrides:
getAutoEditStrategies in class org.eclipse.jface.text.source.SourceViewerConfiguration

getConfiguredContentTypes

public java.lang.String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Overrides:
getConfiguredContentTypes in class org.eclipse.jface.text.source.SourceViewerConfiguration

getContentFormatter

public org.eclipse.jface.text.formatter.IContentFormatter getContentFormatter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Description copied from class: StructuredTextViewerConfiguration
Returns the content formatter ready to be used with the given source viewer.

It is not recommended that clients override this method as it may become final in the future and replaced by an extensible framework.

Overrides:
getContentFormatter in class StructuredTextViewerConfiguration
Parameters:
sourceViewer - the source viewer to be configured by this configuration
Returns:
a content formatter or null if formatting should not be supported

getIndentPrefixes

public java.lang.String[] getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                            java.lang.String contentType)
Overrides:
getIndentPrefixes in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration

getLineStyleProviders

public org.eclipse.wst.sse.ui.internal.provisional.style.LineStyleProvider[] getLineStyleProviders(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                                                                                   java.lang.String partitionType)
Description copied from class: StructuredTextViewerConfiguration
Returns the line style providers that will be used for syntax highlighting in the given source viewer.

Not fully API since return type LineStyleProvider is not API.

Overrides:
getLineStyleProviders in class StructuredTextViewerConfiguration
Parameters:
sourceViewer - the source viewer to be configured by this configuration
partitionType - the partition type for which the lineStyleProviders are applicable
Returns:
LineStyleProvders or null if should not be supported