blob: 760b209b3302fec481dc2fde278334c2fd81b657 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007 Oracle. 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:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.utility.internal.model.listener;
import org.eclipse.jpt.utility.internal.model.event.StateChangeEvent;
/**
* A generic "state change" event gets delivered whenever a model changes to
* such extent that it cannot be delineated all aspects of it that have changed.
* You can register a StateChangeListener with a source model so as to be notified
* of any such changes.
*/
public interface StateChangeListener extends ChangeListener {
/**
* This method gets called when a model has changed in some general fashion.
*
* @param event A StateChangeEvent describing the event source.
*/
void stateChanged(StateChangeEvent event);
}