java.lang.Object
org.eclipse.jface.text.source.SourceViewerConfiguration
com.port80.eclipse.xml.editors.XMLEditorConfiguration
- All Implemented Interfaces:
- com.port80.eclipse.editors.IEditorConfiguration
- public class XMLEditorConfiguration
- extends org.eclipse.jface.text.source.SourceViewerConfiguration
- implements com.port80.eclipse.editors.IEditorConfiguration
| Methods inherited from class org.eclipse.jface.text.source.SourceViewerConfiguration |
getConfiguredDocumentPartitioning, getConfiguredTextHoverStateMasks, getContentAssistant, getDefaultPrefixes, getIndentPrefixes, getInformationPresenter, getOverviewRulerAnnotationHover, getReconciler, getTextHover, getTextHover, getUndoManager |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARITION_TYPES
public static final java.lang.String[] PARITION_TYPES
fEditor
private XMLEditor fEditor
fPreferences
private org.eclipse.jface.preference.IPreferenceStore fPreferences
fDoubleClickStrategy
private XMLDoubleClickStrategy fDoubleClickStrategy
fAutoIndentStrategy
private XMLAutoIndentStrategy fAutoIndentStrategy
fFormatter
private org.eclipse.jface.text.formatter.ContentFormatter fFormatter
fFormattingStrategy
private XMLFormattingStrategy fFormattingStrategy
tagScanner
private XMLTagScanner tagScanner
scanner
private XMLScanner scanner
XMLEditorConfiguration
public XMLEditorConfiguration(XMLEditor editor,
org.eclipse.jface.preference.IPreferenceStore prefs)
getConfiguredContentTypes
public java.lang.String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
- Description copied from class:
org.eclipse.jface.text.source.SourceViewerConfiguration
- Returns all configured content types for the given source viewer. This list
tells the caller which content types must be configured for the given source
viewer, i.e. for which content types the given source viewer's functionalities
must be specified. This implementation always returns
new String[] { IDocument.DEFAULT_CONTENT_TYPE }.
getDoubleClickStrategy
public org.eclipse.jface.text.ITextDoubleClickStrategy getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
- Description copied from class:
org.eclipse.jface.text.source.SourceViewerConfiguration
- Returns the double-click strategy ready to be used in this viewer when double clicking
onto text of the given content type. This implementation always returns a new instance of
DefaultTextDoubleClickStrategy.
getAutoIndentStrategy
public org.eclipse.jface.text.IAutoIndentStrategy getAutoIndentStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
- Description copied from class:
org.eclipse.jface.text.source.SourceViewerConfiguration
- Returns the auto indentation strategy ready to be used with the given source viewer
when manipulating text of the given content type. This implementation always
returns an new instance of
DefaultAutoIndentStrategy.
getPresentationReconciler
public org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
- Description copied from class:
org.eclipse.jface.text.source.SourceViewerConfiguration
- Returns the presentation reconciler ready to be used with the given source viewer.
This implementation always returns
null.
getContentFormatter
public org.eclipse.jface.text.formatter.IContentFormatter getContentFormatter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
- Description copied from class:
org.eclipse.jface.text.source.SourceViewerConfiguration
- Returns the content formatter ready to be used with the given source viewer.
This implementation always returns
null.
getPartitionManagingPositionCategories
public java.lang.String[] getPartitionManagingPositionCategories()
- Returns the names of the document position categories used by the document
partitioners created by this object to manage their partition information.
If the partitioners don't use document position categories, the returned
result is
null.
getPreferences
public org.eclipse.jface.preference.IPreferenceStore getPreferences()
- Specified by:
getPreferences in interface com.port80.eclipse.editors.IEditorConfiguration
getLineWidth
public int getLineWidth(org.eclipse.jface.text.source.ISourceViewer viewer)
- Specified by:
getLineWidth in interface com.port80.eclipse.editors.IEditorConfiguration
getTabWidth
public int getTabWidth(org.eclipse.jface.text.source.ISourceViewer viewer)
- Description copied from class:
org.eclipse.jface.text.source.SourceViewerConfiguration
- Returns the visual width of the tab character. This implementation always
returns 4.
- Specified by:
getTabWidth in interface com.port80.eclipse.editors.IEditorConfiguration
getTab
public java.lang.String getTab(org.eclipse.jface.text.source.ISourceViewer viewer)
- Specified by:
getTab in interface com.port80.eclipse.editors.IEditorConfiguration
getEditor
public XMLEditor getEditor()
handlePreferenceStoreChanged
public void handlePreferenceStoreChanged(org.eclipse.jface.util.PropertyChangeEvent event)
getXMLScanner
protected XMLScanner getXMLScanner()
getXMLTagScanner
protected XMLTagScanner getXMLTagScanner()
getAnnotationHover
public org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
- Description copied from class:
org.eclipse.jface.text.source.SourceViewerConfiguration
- Returns the annotation hover which will provide the information to be
shown in a hover popup window when requested for the given
source viewer.This implementation always returns
null.
getInformationControlCreator
public org.eclipse.jface.text.IInformationControlCreator getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
- Description copied from class:
org.eclipse.jface.text.source.SourceViewerConfiguration
- Returns the information control creator. The creator is a factory creating information
controls for the given source viewer. This implementation always returns a creator for
DefaultInformationControl instances.