blob: 71676c0d6a4cad10f150e8ec619cab0e9efbfea9 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011-2014 EclipseSource Muenchen GmbH and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Alexandra Buzila - initial API and implementation
******************************************************************************/
package org.eclipse.emf.ecp.quickfix;
import java.util.List;
import org.eclipse.emf.common.util.Diagnostic;
/**
* Registry for model quick fixes.
*
* @author Alexandra Buzila
*
*/
public interface ModelQuickFixRegistry {
/**
* Register a {@link ModelQuickFix} implementation.
*
* @param modelQuickFix - the implementation to register
*/
void registerModelQuickFix(ModelQuickFix modelQuickFix);
/**
* @param diagnostic - the diagnostic
* @return a list of {@link ModelQuickFix} objects, applicable for the given diagnostic. The list is
* ordered by the priority of the quick fixes, in descending order.
*/
List<ModelQuickFix> getApplicableModelQuickFixes(Diagnostic diagnostic);
/** @return all the quick fixes contained in the registry. */
List<ModelQuickFix> getAllModelQuickFixes();
}