org.eclipse.xtext.ui.compare
Class DefaultContentViewer

java.lang.Object
  extended by org.eclipse.jface.viewers.Viewer
      extended by org.eclipse.xtext.ui.compare.AbstractContentViewer
          extended by org.eclipse.xtext.ui.compare.DefaultContentViewer
All Implemented Interfaces:
org.eclipse.jface.viewers.IInputProvider, org.eclipse.jface.viewers.IInputSelectionProvider, org.eclipse.jface.viewers.ISelectionProvider

public class DefaultContentViewer
extends AbstractContentViewer

Author:
Michael Clay - Initial contribution and API

Field Summary
protected  StreamContentDocumentProvider documentProvider
           
protected  XtextSourceViewerConfiguration sourceViewerConfiguration
           
 
Fields inherited from class org.eclipse.xtext.ui.compare.AbstractContentViewer
compareConfiguration, input, parent, selection, sourceViewer
 
Fields inherited from class org.eclipse.jface.viewers.Viewer
WIDGET_DATA_KEY
 
Constructor Summary
DefaultContentViewer()
           
 
Method Summary
protected  void configureSourceViewer(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
           
protected  org.eclipse.jface.text.source.ISourceViewer createSourceViewer()
           
 void setInput(java.lang.Object input)
          Sets or clears the input for this viewer.
 
Methods inherited from class org.eclipse.xtext.ui.compare.AbstractContentViewer
getCompareConfiguration, getControl, getInput, getParent, getSelection, init, refresh, setSelection
 
Methods inherited from class org.eclipse.jface.viewers.Viewer
addHelpListener, addSelectionChangedListener, fireHelpRequested, fireSelectionChanged, getData, handleHelpRequest, inputChanged, removeHelpListener, removeSelectionChangedListener, scrollDown, scrollUp, setData, setSelection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceViewerConfiguration

@Inject
protected XtextSourceViewerConfiguration sourceViewerConfiguration

documentProvider

@Inject
protected StreamContentDocumentProvider documentProvider
Constructor Detail

DefaultContentViewer

public DefaultContentViewer()
Method Detail

createSourceViewer

protected org.eclipse.jface.text.source.ISourceViewer createSourceViewer()
Specified by:
createSourceViewer in class AbstractContentViewer

configureSourceViewer

protected void configureSourceViewer(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Specified by:
configureSourceViewer in class AbstractContentViewer

setInput

public void setInput(java.lang.Object input)
Description copied from class: org.eclipse.jface.viewers.Viewer
Sets or clears the input for this viewer.

Overrides:
setInput in class AbstractContentViewer
Parameters:
input - the input of this viewer, or null if none