Package org.eclipse.compare.internal
Class ViewerDescriptor
java.lang.Object
org.eclipse.compare.internal.ViewerDescriptor
- All Implemented Interfaces:
IViewerDescriptor
Creates
Viewers from an IConfigurationElement.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateViewer(Viewer currentViewer, Composite parent, CompareConfiguration mp) Creates a new viewer from this descriptor under the given STW parent control.toString()
-
Constructor Details
-
ViewerDescriptor
-
-
Method Details
-
createViewer
Description copied from interface:IViewerDescriptorCreates a new viewer from this descriptor under the given STW parent control. If the current viewer has the same type as a new viewer the implementation of this method is free to return the current viewer instead.- Specified by:
createViewerin interfaceIViewerDescriptor- Parameters:
currentViewer- the current viewer which is going to be replaced with a new viewer.parent- the SWT parent control under which the new viewer has to be created.mp- a compare configuration the new viewer might be interested in.- Returns:
- a new viewer or the current viewer.
-
getExtension
-
toString
-