java.lang.Object
org.eclipse.jface.text.source.SourceViewerConfiguration
com.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.
| 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 |
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
AntlrEditorConfiguration
public AntlrEditorConfiguration(AntlrEditor 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.
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.