Class TreeContentMergeViewer

  • All Implemented Interfaces:
    org.eclipse.compare.contentmergeviewer.IFlushable, org.eclipse.compare.internal.IFlushable2, org.eclipse.compare.IPropertyChangeNotifier, org.eclipse.core.runtime.IAdaptable, CommandStackListener, ICompareColor.Provider, org.eclipse.jface.viewers.IInputProvider, org.eclipse.jface.viewers.IInputSelectionProvider, org.eclipse.jface.viewers.ISelectionChangedListener, org.eclipse.jface.viewers.ISelectionProvider

    public class TreeContentMergeViewer
    extends AbstractTreeContentMergeViewer
    Specialized ContentMergeViewer that uses TreeViewer to display left, right and ancestor EObject.
    • Constructor Detail

      • TreeContentMergeViewer

        public TreeContentMergeViewer​(int style,
                                      ResourceBundle bundle,
                                      org.eclipse.swt.widgets.Composite parent,
                                      EMFCompareConfiguration config)
        Creates a new TreeContentMergeViewer by calling the super constructor with the given parameters.

        It calls ContentMergeViewer.buildControl(Composite) as stated in its javadoc.

        It sets a specific content provider to properly display ancestor, left and right parts.

        Parameters:
        style - the style indicator for the parent
        bundle - the ResourceBundle for localization
        parent - the parent composite to build the UI in
        config - the CompareConfiguration
      • TreeContentMergeViewer

        public TreeContentMergeViewer​(org.eclipse.swt.widgets.Composite parent,
                                      EMFCompareConfiguration config)
        Creates a new TreeContentMergeViewer by calling the super constructor with the given parameters.

        It calls ContentMergeViewer.buildControl(Composite) as stated in its javadoc.

        It sets a specific content provider to properly display ancestor, left and right parts.

        Parameters:
        parent - the parent composite to build the UI in
        config - the CompareConfiguration