Skip to content

Package: ECPModelElementOpener

ECPModelElementOpener

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2012 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: * Jonas Helming - initial API and implementation
13: *
14: *******************************************************************************/
15:
16: package org.eclipse.emf.ecp.ui.util;
17:
18: import org.eclipse.emf.ecp.core.ECPProject;
19:
20: /**
21: * This interface is used to open a specific editor for a model element. ECP provides a common implementation able to
22: * handle all EObjects.
23: *
24: * @author helming
25: */
26: public interface ECPModelElementOpener {
27:
28:         /**
29:          * The action to open the model element.
30:          *
31:          * @param element
32:          * the element to open
33:          * @param ecpProject
34:          * the project this element belongs to
35:          */
36:         void openModelElement(Object element, ECPProject ecpProject);
37: }