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

Quick Search    Search Deep

com.port80.eclipse.antlr.editors
Class AntlrEditorConfiguration  view AntlrEditorConfiguration download AntlrEditorConfiguration.java

java.lang.Object
  extended byorg.eclipse.jface.text.source.SourceViewerConfiguration
      extended bycom.port80.eclipse.antlr.editors.AntlrEditorConfiguration
All Implemented Interfaces:
com.port80.eclipse.editors.IEditorConfiguration

public class AntlrEditorConfiguration
extends org.eclipse.jface.text.source.SourceViewerConfiguration
implements com.port80.eclipse.editors.IEditorConfiguration

EditorConfiguration provide access and abstraction to editor configuration information.


Field Summary
private  com.port80.eclipse.editors.util.DefaultCodeIndentStrategy fAutoIndentStrategy
           
static org.eclipse.jface.text.rules.IToken fDefaultToken
           
private  AntlrDoubleClickStrategy fDoubleClickStrategy
           
private  AntlrEditor fEditor
           
private  org.eclipse.jface.text.formatter.ContentFormatter fFormatter
           
private  AntlrFormatterParser fFormatterParser
           
private  AntlrFormattingStrategy fFormattingStrategy
           
private static java.util.Map fJavaFormatOptions
           
private  com.port80.eclipse.editors.ThemeManager fManager
           
private  org.eclipse.jface.preference.IPreferenceStore fPreferences
           
private static java.lang.String NAME
           
(package private) static java.lang.String[] PARTITION_TYPES
           
 
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
AntlrEditorConfiguration(AntlrEditor 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.
 int getCodeColumn(org.eclipse.jface.text.source.ISourceViewer viewer)
           
 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.rules.IToken getDefaultToken()
           
 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.
 AntlrEditor 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)
           
private  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.
 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

NAME

private static final java.lang.String NAME
See Also:
Constant Field Values

PARTITION_TYPES

static final java.lang.String[] PARTITION_TYPES

fDefaultToken

public static org.eclipse.jface.text.rules.IToken fDefaultToken

fJavaFormatOptions

private static java.util.Map fJavaFormatOptions

fEditor

private AntlrEditor fEditor

fPreferences

private org.eclipse.jface.preference.IPreferenceStore fPreferences

fManager

private com.port80.eclipse.editors.ThemeManager fManager

fDoubleClickStrategy

private AntlrDoubleClickStrategy fDoubleClickStrategy

fAutoIndentStrategy

private com.port80.eclipse.editors.util.DefaultCodeIndentStrategy fAutoIndentStrategy

fFormatter

private org.eclipse.jface.text.formatter.ContentFormatter fFormatter

fFormattingStrategy

private AntlrFormattingStrategy fFormattingStrategy

fFormatterParser

private AntlrFormatterParser fFormatterParser
Constructor Detail

AntlrEditorConfiguration

public AntlrEditorConfiguration(AntlrEditor 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.


getPreferences

public org.eclipse.jface.preference.IPreferenceStore getPreferences()
Specified by:
getPreferences 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

getLineWidth

public int getLineWidth(org.eclipse.jface.text.source.ISourceViewer viewer)
Specified by:
getLineWidth 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 AntlrEditor getEditor()

getCodeColumn

public int getCodeColumn(org.eclipse.jface.text.source.ISourceViewer viewer)

handlePreferenceStoreChanged

public void handlePreferenceStoreChanged(org.eclipse.jface.util.PropertyChangeEvent event)

getDefaultToken

public org.eclipse.jface.text.rules.IToken getDefaultToken()

getPartitionManagingPositionCategories

private 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.


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.