Skip to content

Package: ECPModelElementOpenerWithContext

ECPModelElementOpenerWithContext

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2017 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: * Mat Hansen - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.ui.util;
15:
16: import java.util.Map;
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.
22: * ECP provides a common implementation able to handle all EObjects.
23: * Additionally this interface allows to pass a context map with arbitrary objects to the opener.
24: *
25: * @author Mat Hansen <mhansen@eclipsesource.com>
26: * @since 1.12
27: *
28: */
29: public interface ECPModelElementOpenerWithContext extends ECPModelElementOpener {
30:
31:         /**
32:          * The action to open the model element.
33:          *
34:          * @param element
35:          * the element to open
36:          * @param ecpProject
37:          * the project this element belongs to
38:          * @param context the additional context objects
39:          */
40:         void openModelElement(Object element, ECPProject ecpProject, Map<Object, Object> context);
41:
42: }