blob: 0d2526bbce46cd1fb067d108b20796bf90e353b8 [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 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Eugen Neufeld - initial API and implementation
*
*******************************************************************************/
package org.eclipse.emf.ecp.editor.e3;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecp.edit.spi.ECPContextDisposedListener;
/**
* This Context adds methods that are specifically needed by an editor.
*
* @author Eugen Neufeld
*
*/
public interface ECPEditorContext {
/**
* Called if the context is not used anymore. Use for cleanup.
*/
void dispose();
/**
* Adds a {@link ECPContextDisposedListener}.
*
* @param ecpContextDisposedListener
* the {@link ECPContextDisposedListener}
*/
void addECPContextDisposeListener(ECPContextDisposedListener ecpContextDisposedListener);
/**
* The domain {@link EObject}.
*
* @return the {@link EObject}
*/
EObject getDomainObject();
}