blob: 5557713dec9bfa4e0b3be789d8c53eff22fc79c5 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008-2011 Chair for Applied Software Engineering,
* Technische Universitaet Muenchen.
* 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:
* wesendon
******************************************************************************/
package org.eclipse.emf.emfstore.internal.client.model.changeTracking.merging.conflict;
/**
* Interface for extension point. This is used to register new options for a
* merge decision.
*
* @author wesendon
*/
public interface CustomConflictOptionFactory {
/**
* Check whether custom option is applicable for given conflict.
*
* @param conflict
* to check
* @return true if applicable
*/
boolean isApplicableConflict(VisualConflict conflict);
/**
* Creates the custom option. This method is called if {@link #isApplicableConflict(VisualConflict)} has returned
* true and
* only then.
*
* @param conflict
* parent conflict
* @return custom option
*/
CustomConflictOption createCustomConflictOption(VisualConflict conflict);
}