/*******************************************************************************
* Copyright (c) 2010-2012, Istvan Rath and Daniel Varro
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Tamas Szabo, Gabor Bergmann - initial API and implementation
*******************************************************************************/
package org.eclipse.incquery.runtime.base.api;
import org.eclipse.emf.ecore.EDataType;
/**
* Interface for observing insertion and deletion of instances of data types.
*
* @author Tamas Szabo
*
*/
public interface DataTypeListener {
/**
* Called when the given instance of the given type is inserted.
*
* @param type
* the {@link EDataType} instance
* @param instance
* the instance of the data type
*/
public void dataTypeInstanceInserted(EDataType type, Object instance);
/**
* Called when the given instance of the given type is deleted.
*
* @param type
* the {@link EDataType} instance
* @param instance
* the instance of the data type
*/
public void dataTypeInstanceDeleted(EDataType type, Object instance);
}