blob: bba6d11649cf3383803e5fb6cf038a2cce2e7192 [file] [log] [blame]
/*******************************************************************************
* Copyright 2011 Chair for Applied Software Engineering,
* Technische Universitaet Muenchen.
* All rights reserved. This program and the accompanying materials
* are made available under the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
******************************************************************************/
package org.eclipse.emf.emfstore.common.model.util;
import org.eclipse.emf.common.notify.Notification;
/**
* Listens to changes on a single model element.
*
* @author koegel
*/
public interface ModelElementChangeListener {
/**
* Handle changes to the model element.
*
* @param notification the EMF notification, providing details on the change
*/
void onChange(Notification notification);
/**
* Handle a runtime exception that occured in this listeners methods. NOTE: runtime exceptions of this method will
* be logged and silently dropped.
*
* @param exception the exception
*/
void onRuntimeExceptionInListener(RuntimeException exception);
}