org.eclipse.xtext.ui.compare
Class DefaultViewerCreator
java.lang.Object
org.eclipse.xtext.ui.compare.DefaultViewerCreator
- All Implemented Interfaces:
- org.eclipse.compare.IViewerCreator
public class DefaultViewerCreator
- extends java.lang.Object
- implements org.eclipse.compare.IViewerCreator
- Author:
- Michael Clay - Initial contribution and API
Method Summary |
protected org.eclipse.jface.viewers.Viewer |
createContentViever(org.eclipse.swt.widgets.Composite parent,
org.eclipse.compare.CompareConfiguration compareConfiguration)
|
protected org.eclipse.jface.viewers.Viewer |
createMergeViewer(org.eclipse.swt.widgets.Composite parent,
org.eclipse.compare.CompareConfiguration compareConfiguration)
|
org.eclipse.jface.viewers.Viewer |
createViewer(org.eclipse.swt.widgets.Composite parent,
org.eclipse.compare.CompareConfiguration compareConfiguration)
Creates a new viewer under the given SWT parent control. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contentViewerProvider
@Inject
protected com.google.inject.Provider<DefaultContentViewer> contentViewerProvider
mergeEditorProvider
@Inject
protected com.google.inject.Provider<DefaultMergeEditor> mergeEditorProvider
documentProvider
@Inject
protected StreamContentDocumentProvider documentProvider
sourceViewerConfigurationProvider
@Inject
protected com.google.inject.Provider<XtextSourceViewerConfiguration> sourceViewerConfigurationProvider
DefaultViewerCreator
public DefaultViewerCreator()
createViewer
public org.eclipse.jface.viewers.Viewer createViewer(org.eclipse.swt.widgets.Composite parent,
org.eclipse.compare.CompareConfiguration compareConfiguration)
- Description copied from interface:
org.eclipse.compare.IViewerCreator
- Creates a new viewer under the given SWT parent control.
- Specified by:
createViewer
in interface org.eclipse.compare.IViewerCreator
- Parameters:
parent
- the SWT parent control under which to create the viewer's SWT controlcompareConfiguration
- a compare configuration the newly created viewer might want to use
- Returns:
- a new viewer
createMergeViewer
protected org.eclipse.jface.viewers.Viewer createMergeViewer(org.eclipse.swt.widgets.Composite parent,
org.eclipse.compare.CompareConfiguration compareConfiguration)
createContentViever
protected org.eclipse.jface.viewers.Viewer createContentViever(org.eclipse.swt.widgets.Composite parent,
org.eclipse.compare.CompareConfiguration compareConfiguration)