public class MirrorManager extends Object
ContentMergeViewer and TextMergeViewer in EMF Compare,| Constructor and Description | 
|---|
| MirrorManager(EMFCompareConfiguration configuration)Creates an instance for this confirmation. | 
| Modifier and Type | Method and Description | 
|---|---|
| org.eclipse.jface.viewers.IContentProvider | getContentProvider(org.eclipse.jface.viewers.IContentProvider contentProvider)Returns the appropriate content provider based on the current state of
  ForwardingCompareConfiguration.isMirrored(). | 
| boolean | handlePropertyChangeEvent(org.eclipse.jface.util.PropertyChangeEvent event)Called from a derived  ContentMergeViewer.handlePropertyChangeEvent(PropertyChangeEvent)method
 to intercept the preference change for swapping, i.e., mirroring the sides. | 
public MirrorManager(EMFCompareConfiguration configuration)
configuration - the EMF compare configuration.public org.eclipse.jface.viewers.IContentProvider getContentProvider(org.eclipse.jface.viewers.IContentProvider contentProvider)
ForwardingCompareConfiguration.isMirrored().
 
 This method should be used in overrides of
 ContentMergeViewer.setContentProvider(IContentProvider) to automatically set the correctly
 mirrored content provider.
 
contentProvider - the current content provider.public boolean handlePropertyChangeEvent(org.eclipse.jface.util.PropertyChangeEvent event)
ContentMergeViewer.handlePropertyChangeEvent(PropertyChangeEvent) method
 to intercept the preference change for swapping, i.e., mirroring the sides.
 
 If this method returns true, the caller should not call
 super.handlePropertyChangeEvent(event) but rather should do the processing themselves to
 avoid calls to ContentMergeViewer.updateContentProvider() which will set the bogus default
 content provider. The method sets the MIRRORED property of the configuration as is normally done when
 calling super.
 
event - the event to handle.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.