blob: 57df3c7598fd365dfcb302da977f6c9a2f13f0ea [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013, 2018 Obeo and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Obeo - initial API and implementation
* Philip Langer - bug 527567
*******************************************************************************/
package org.eclipse.emf.compare.internal.merge;
import org.eclipse.emf.common.notify.Adapter;
/**
* Interface implemented by {@link org.eclipse.emf.compare.internal.merge.MergeDataImpl}. It helps to know the
* way of merge and the editable sides of a difference.
*
* @author <a href="mailto:axel.richard@obeo.fr">Axel Richard</a>
*/
public interface IMergeData extends Adapter {
/**
* Returns whether the left side of the comparison is editable.
*
* @return true if the left side of the comparison is editable, false otherwise.
*/
boolean isLeftEditable();
/**
* Set whether the left side of the comparison is editable.
*
* @param leftEditable
* whether the left side of the comparison is editable.
*/
void setLeftEditable(boolean leftEditable);
/**
* Returns whether the right side of the comparison is editable.
*
* @return true if the right side of the comparison is editable, false otherwise.
*/
boolean isRightEditable();
/**
* Set whether the right side of the comparison is editable.
*
* @param rightEditable
* whether the right side of the comparison is editable.
*/
void setRightEditable(boolean rightEditable);
/**
* Returns whether the left and right sides are swapped, i.e., mirrored.
*
* @return true if the left and right sides are swapped, i.e., mirrored, false otherwise.
*/
boolean isMirrored();
/**
* Sets whether the left and right sides are swapped, i.e., mirrored.
*
* @param mirrored
* whether the left and right sides are swapped, i.e., mirrored, false otherwise.
*/
void setMirrored(boolean mirrored);
}