Skip to content

Package: ECPModelContextProvider

ECPModelContextProvider

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eike Stepper - initial API and implementation
13: * Eugen Neufeld - JavaDoc
14: *
15: *******************************************************************************/
16:
17: package org.eclipse.emf.ecp.core.util;
18:
19: /**
20: * The {@link ECPModelContextProvider} can return the {@link ECPContainer} of a certain Object.
21: *
22: * @author Eike Stepper
23: * @author Eugen Neufeld
24: */
25: public interface ECPModelContextProvider {
26:         /**
27:          * Returns the first {@link ECPContainer} that can be found for the provided Object.
28:          *
29:          * @param element the element to search the {@link ECPContainer} for
30:          * @return the {@link ECPContainer} of this element
31:          */
32:         ECPContainer getModelContext(Object element);
33: }