Skip to content

Package: ECPEditorContext

ECPEditorContext

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: * Eugen Neufeld - initial API and implementation
13: *
14: *******************************************************************************/
15: package org.eclipse.emf.ecp.editor.e3;
16:
17: import org.eclipse.emf.ecore.EObject;
18: import org.eclipse.emf.ecp.edit.spi.ECPContextDisposedListener;
19:
20: /**
21: * This Context adds methods that are specifically needed by an editor.
22: *
23: * @author Eugen Neufeld
24: *
25: */
26: public interface ECPEditorContext {
27:
28:         /**
29:          * Called if the context is not used anymore. Use for cleanup.
30:          */
31:         void dispose();
32:
33:         /**
34:          * Adds a {@link ECPContextDisposedListener}.
35:          *
36:          * @param ecpContextDisposedListener
37:          * the {@link ECPContextDisposedListener}
38:          */
39:         void addECPContextDisposeListener(ECPContextDisposedListener ecpContextDisposedListener);
40:
41:         /**
42:          * The domain {@link EObject}.
43:          *
44:          * @return the {@link EObject}
45:          */
46:         EObject getDomainObject();
47: }