Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.eclipse.xml.editors
Class XMLEditorConfiguration  view XMLEditorConfiguration download XMLEditorConfiguration.java

java.lang.Object
  extended byorg.eclipse.jface.text.source.SourceViewerConfiguration
      extended bycom.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


Field Summary
private  XMLAutoIndentStrategy fAutoIndentStrategy
           
private  XMLDoubleClickStrategy fDoubleClickStrategy
           
private  XMLEditor fEditor
           
private  org.eclipse.jface.text.formatter.ContentFormatter fFormatter
           
private  XMLFormattingStrategy fFormattingStrategy
           
private  org.eclipse.jface.preference.IPreferenceStore fPreferences
           
static java.lang.String[] PARITION_TYPES
           
private  XMLScanner scanner
           
private  XMLTagScanner tagScanner
           
 
Fields inherited from interface com.port80.eclipse.editors.IEditorConfiguration
CDATA_PARTITION, COMMENT_PARTITION, COMMENT1_PARTITION, DEFAULT_PARTITION, JAVADOC_PARTITION, PROC_INST_PARTITION, SCRIPT_PARTITION, STRING_PARTITION, TAG_PARTITION
 
Constructor Summary
XMLEditorConfiguration(XMLEditor editor, org.eclipse.jface.preference.IPreferenceStore prefs)
           
 
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.This implementation always returns null.
 org.eclipse.jface.text.IAutoIndentStrategy getAutoIndentStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
          Returns the auto indentation strategy ready to be used with the given source viewer when manipulating text of the given content type.
 java.lang.String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
          Returns all configured content types for 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.ITextDoubleClickStrategy getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
          Returns the double-click strategy ready to be used in this viewer when double clicking onto text of the given content type.
 XMLEditor getEditor()
           
 org.eclipse.jface.text.IInformationControlCreator getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
          Returns the information control creator.
 int getLineWidth(org.eclipse.jface.text.source.ISourceViewer viewer)
           
 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.
 org.eclipse.jface.preference.IPreferenceStore getPreferences()
           
 org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
          Returns the presentation reconciler ready to be used with the given source viewer.
 java.lang.String getTab(org.eclipse.jface.text.source.ISourceViewer viewer)
           
 int getTabWidth(org.eclipse.jface.text.source.ISourceViewer viewer)
          Returns the visual width of the tab character.
protected  XMLScanner getXMLScanner()
           
protected  XMLTagScanner getXMLTagScanner()
           
 void handlePreferenceStoreChanged(org.eclipse.jface.util.PropertyChangeEvent event)
           
 
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
 

Field Detail

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
Constructor Detail

XMLEditorConfiguration

public XMLEditorConfiguration(XMLEditor editor,
                              org.eclipse.jface.preference.IPreferenceStore prefs)
Method Detail

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.