org.eclipse.xtext.ui.editor.embedded
Class EmbeddedEditorFactory.Builder

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.embedded.EmbeddedEditorFactory.Builder
Enclosing class:
EmbeddedEditorFactory

public static class EmbeddedEditorFactory.Builder
extends java.lang.Object


Field Summary
protected  EmbeddedEditorActions.Factory actionFactory
           
protected  java.lang.String[] annotationTypes
           
protected  org.eclipse.jface.text.source.ICharacterPairMatcher characterPairMatcher
           
protected  com.google.inject.Provider<org.eclipse.jface.text.IDocumentPartitioner> documentPartitionerProvider
           
protected  com.google.inject.Provider<XtextDocument> documentProvider
           
protected  boolean editorBuild
           
protected  HighlightingHelper highlightingHelper
           
protected  IValidationIssueProcessor issueProcessor
           
protected  IssueResolutionProvider issueResolutionProvider
           
protected  IPreferenceStoreAccess preferenceStoreAccess
           
protected  java.lang.Boolean readonly
           
protected  IEditedResourceProvider resourceProvider
           
protected  IResourceValidator resourceValidator
           
protected  com.google.inject.Provider<XtextSourceViewerConfiguration> sourceViewerConfigurationProvider
           
protected  XtextSourceViewer.Factory sourceViewerFactory
           
protected static int VERTICAL_RULER_WIDTH
          The width of the vertical ruler.
 
Constructor Summary
EmbeddedEditorFactory.Builder()
           
 
Method Summary
protected  void afterCreatePartialEditor(XtextSourceViewer viewer, XtextDocument document, org.eclipse.jface.text.source.CompositeRuler verticalRuler, EmbeddedEditorActions actions)
           
protected  org.eclipse.jface.text.source.ISharedTextColors getSharedColors()
           
protected  EmbeddedEditorActions initializeActions(org.eclipse.jface.text.source.SourceViewer viewer)
           
protected  OperationHistoryListener installUndoRedoSupport(org.eclipse.jface.text.source.SourceViewer viewer, org.eclipse.jface.text.IDocument document, EmbeddedEditorActions actions)
           
 EmbeddedEditorFactory.Builder processIssuesBy(IValidationIssueProcessor issueProcessor)
           
 EmbeddedEditorFactory.Builder readOnly()
           
protected  void setResourceProvider(IEditedResourceProvider resourceProvider)
           
 EmbeddedEditorFactory.Builder showAnnotations(java.lang.String... annotationTypes)
           
 EmbeddedEditorFactory.Builder showErrorAndWarningAnnotations()
           
protected  void uninstallUndoRedoSupport(OperationHistoryListener listener)
           
protected  void updateUndoAction(EmbeddedEditorActions actions)
           
 EmbeddedEditor withParent(org.eclipse.swt.widgets.Composite parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERTICAL_RULER_WIDTH

protected static final int VERTICAL_RULER_WIDTH
The width of the vertical ruler.

See Also:
Constant Field Values

sourceViewerFactory

@Inject
protected XtextSourceViewer.Factory sourceViewerFactory

sourceViewerConfigurationProvider

@Inject
protected com.google.inject.Provider<XtextSourceViewerConfiguration> sourceViewerConfigurationProvider

documentProvider

@Inject
protected com.google.inject.Provider<XtextDocument> documentProvider

documentPartitionerProvider

@Inject
protected com.google.inject.Provider<org.eclipse.jface.text.IDocumentPartitioner> documentPartitionerProvider

resourceValidator

@Inject
protected IResourceValidator resourceValidator

preferenceStoreAccess

@Inject
protected IPreferenceStoreAccess preferenceStoreAccess

issueResolutionProvider

@Inject
protected IssueResolutionProvider issueResolutionProvider

characterPairMatcher

@Inject
protected org.eclipse.jface.text.source.ICharacterPairMatcher characterPairMatcher

actionFactory

@Inject
protected EmbeddedEditorActions.Factory actionFactory

highlightingHelper

@Inject
protected HighlightingHelper highlightingHelper

resourceProvider

protected IEditedResourceProvider resourceProvider

annotationTypes

protected java.lang.String[] annotationTypes

readonly

protected java.lang.Boolean readonly

editorBuild

protected boolean editorBuild

issueProcessor

protected IValidationIssueProcessor issueProcessor
Constructor Detail

EmbeddedEditorFactory.Builder

public EmbeddedEditorFactory.Builder()
Method Detail

showErrorAndWarningAnnotations

public EmbeddedEditorFactory.Builder showErrorAndWarningAnnotations()

showAnnotations

public EmbeddedEditorFactory.Builder showAnnotations(java.lang.String... annotationTypes)

processIssuesBy

public EmbeddedEditorFactory.Builder processIssuesBy(IValidationIssueProcessor issueProcessor)

readOnly

public EmbeddedEditorFactory.Builder readOnly()

withParent

public EmbeddedEditor withParent(org.eclipse.swt.widgets.Composite parent)

afterCreatePartialEditor

protected void afterCreatePartialEditor(XtextSourceViewer viewer,
                                        XtextDocument document,
                                        org.eclipse.jface.text.source.CompositeRuler verticalRuler,
                                        EmbeddedEditorActions actions)

updateUndoAction

protected void updateUndoAction(EmbeddedEditorActions actions)

uninstallUndoRedoSupport

protected void uninstallUndoRedoSupport(OperationHistoryListener listener)

installUndoRedoSupport

protected OperationHistoryListener installUndoRedoSupport(org.eclipse.jface.text.source.SourceViewer viewer,
                                                          org.eclipse.jface.text.IDocument document,
                                                          EmbeddedEditorActions actions)

setResourceProvider

protected void setResourceProvider(IEditedResourceProvider resourceProvider)

getSharedColors

protected org.eclipse.jface.text.source.ISharedTextColors getSharedColors()

initializeActions

protected EmbeddedEditorActions initializeActions(org.eclipse.jface.text.source.SourceViewer viewer)