Package org.eclipse.compare.internal
Class TextMergeViewerCreator
java.lang.Object
org.eclipse.compare.internal.TextMergeViewerCreator
- All Implemented Interfaces:
IViewerCreator
A factory object for the
TextMergeViewer
.
This indirection is necessary because only objects with a default
constructor can be created via an extension point
(this precludes Viewers).-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateViewer
(Composite parent, CompareConfiguration mp) Creates a new viewer under the given SWT parent control.
-
Constructor Details
-
TextMergeViewerCreator
public TextMergeViewerCreator()
-
-
Method Details
-
createViewer
Description copied from interface:IViewerCreator
Creates a new viewer under the given SWT parent control.- Specified by:
createViewer
in interfaceIViewerCreator
- Parameters:
parent
- the SWT parent control under which to create the viewer's SWT controlmp
- a compare configuration the newly created viewer might want to use- Returns:
- a new viewer
-