org.eclipse.emf.common.notify.NotificationChain Maven / Gradle / Ivy
/**
*
*
* Copyright (c) 2002-2004 IBM Corporation and others.
* 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:
* IBM - Initial API and implementation
*
*
*
* $Id: NotificationChain.java,v 1.3 2005/06/08 06:19:08 nickb Exp $
*/
package org.eclipse.emf.common.notify;
/**
* An accumulator of notifications.
* As notifications are produced,
* they are {@link #add accumulated} in a chain,
* and possibly even merged,
* before finally being {@link #dispatch dispatched} to the notifier.
*/
public interface NotificationChain
{
/**
* Adds a notification to the chain.
* @return whether the notification was added.
*/
public boolean add(Notification notification);
/**
* Dispatches each notification to the appropriate notifier via
* {@link org.eclipse.emf.common.notify.Notifier#eNotify Notifier.eNotify}.
*/
public void dispatch();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy