public abstract class AbstractTreeContentMergeViewer extends EMFCompareContentMergeViewer
CENTER_WIDTH
Constructor and Description |
---|
AbstractTreeContentMergeViewer(int style,
ResourceBundle bundle,
EMFCompareConfiguration config)
Creates a new
AbstractTreeContentMergeViewer by calling the super constructor with the given
parameters. |
Modifier and Type | Method and Description |
---|---|
protected TreeMergeViewer |
getAncestorMergeViewer() |
protected byte[] |
getContents(boolean left) |
protected TreeMergeViewer |
getLeftMergeViewer() |
protected TreeMergeViewer |
getRightMergeViewer() |
protected void |
hookListeners(TreeMergeViewer treeMergeViewer)
Adds all required listeners to the given
TreeMergeViewer . |
protected void |
paintCenter(org.eclipse.swt.graphics.GC g) |
colorChanged, commandStackChanged, computeSide, copy, createCenterControl, createControls, createMergeViewer, createToolItems, doSave, editingDomainChange, flushContent, getAdapter, getCenterWidth, getCompareColor, getCompareConfiguration, getControl, getDifferenceFilterPredicate, getDifferenceGroupProvider, getDiffFrom, getHandlerService, getMirroredContentProvider, getUnmirroredContentProvider, handleAdapterFactoryChange, handleDifferenceFiltersChange, handleDifferenceGroupProviderChange, handleDispose, handleEditingDomainChange, handleResizeAncestor, handleResizeLeftRight, isMirrored, redrawCenterControl, selectionChanged, setMirrored, updateContent, updateMirrored
addPropertyChangeListener, buildControl, flush, flushLeft, flushRight, getCenterControl, getResourceBundle, getSelection, getTitle, getToolBarManager, handleCompareInputChange, handlePropertyChangeEvent, handleSetFocus, hookControl, inputChanged, internalIsLeftDirty, internalIsRightDirty, isAncestorVisible, isLeftDirty, isLeftEditable, isRightDirty, isRightEditable, isThreeWay, refresh, removePropertyChangeListener, save, setConfirmSave, setContentProvider, setLeftDirty, setRightDirty, setSelection, updateHeader, updateToolItems
getContentProvider, getInput, getLabelProvider, handleLabelProviderChanged, labelProviderChanged, setInput, setLabelProvider
public AbstractTreeContentMergeViewer(int style, ResourceBundle bundle, EMFCompareConfiguration config)
AbstractTreeContentMergeViewer
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.
style
- the style indicator for the parentbundle
- the ResourceBundle
for localizationparent
- the parent composite to build the UI inconfig
- the CompareConfiguration
protected TreeMergeViewer getAncestorMergeViewer()
getAncestorMergeViewer
in class EMFCompareContentMergeViewer
EMFCompareContentMergeViewer.getAncestorMergeViewer()
protected TreeMergeViewer getLeftMergeViewer()
getLeftMergeViewer
in class EMFCompareContentMergeViewer
EMFCompareContentMergeViewer.getLeftMergeViewer()
protected TreeMergeViewer getRightMergeViewer()
getRightMergeViewer
in class EMFCompareContentMergeViewer
EMFCompareContentMergeViewer.getRightMergeViewer()
protected byte[] getContents(boolean left)
getContents
in class org.eclipse.compare.contentmergeviewer.ContentMergeViewer
ContentMergeViewer.getContents(boolean)
protected void hookListeners(TreeMergeViewer treeMergeViewer)
TreeMergeViewer
.treeMergeViewer
- the TreeMergeViewer
.protected void paintCenter(org.eclipse.swt.graphics.GC g)
paintCenter
in class EMFCompareContentMergeViewer
org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.EMFCompareContentMergeViewer#paintCenter(org.eclipse.swt.widgets.Canvas,
org.eclipse.swt.graphics.GC)
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.