blob: eae2d05c0cae2f857331d4357fd65706aa330667 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011-2013 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 v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Eike Stepper - initial API and implementation
* Eugen Neufeld - JavaDoc
*
*******************************************************************************/
package org.eclipse.emf.ecp.core.util;
/**
* The {@link ECPModelContextProvider} can return the {@link ECPContainer} of a certain Object.
*
* @author Eike Stepper
* @author Eugen Neufeld
*/
public interface ECPModelContextProvider {
/**
* Returns the first {@link ECPContainer} that can be found for the provided Object.
*
* @param element the element to search the {@link ECPContainer} for
* @return the {@link ECPContainer} of this element
*/
ECPContainer getModelContext(Object element);
}