trace/tracebuilder/com.nokia.tracebuilder/src/com/nokia/tracebuilder/model/TraceModelListener.java
author Jussi Ryoma <ext-jussi.s.ryoma@nokia.com>
Tue, 24 Aug 2010 14:01:48 +0300
changeset 16 72f198be1c1d
parent 10 ed1c9f64298a
permissions -rw-r--r--
Crash Analyser Carbide Extension 1.4.0

/*
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
* Listener interface for trace model change notifications
*
*/
package com.nokia.tracebuilder.model;

/**
 * Listener interface for trace model change notifications
 * 
 */
public interface TraceModelListener {

	/**
	 * Object name has been updated
	 */
	int NAME = 1;

	/**
	 * Object ID has been updated
	 */
	int ID = 2;

	/**
	 * Trace text has been updated
	 */
	int TRACE = 3;

	/**
	 * Parameter type has been updated
	 */
	int TYPE = 4;

	/**
	 * Notification which is fired when a trace object has been added
	 * 
	 * @param owner
	 *            the owner of the object
	 * @param object
	 *            the object
	 */
	public void objectAdded(TraceObject owner, TraceObject object);

	/**
	 * Notification that is fired a trace object is removed from the model
	 * 
	 * @param owner
	 *            the owner of the object
	 * @param object
	 *            the removed object
	 */
	public void objectRemoved(TraceObject owner, TraceObject object);

	/**
	 * Notifies that the one of the properties of an object have been updated
	 * 
	 * @param object
	 *            the object which was updated
	 * @param property
	 *            the property that was updated
	 */
	public void propertyUpdated(TraceObject object, int property);

	/**
	 * Notifies that object creation is complete
	 * 
	 * @param object
	 *            the object
	 */
	public void objectCreationComplete(TraceObject object);
}