| 1 | /********************************************************************** |
| 2 | * Copyright (c) 2012, 2013 Ericsson |
| 3 | * |
| 4 | * All rights reserved. This program and the accompanying materials are |
| 5 | * made available under the terms of the Eclipse Public License v1.0 which |
| 6 | * accompanies this distribution, and is available at |
| 7 | * http://www.eclipse.org/legal/epl-v10.html |
| 8 | * |
| 9 | * Contributors: |
| 10 | * Bernd Hufmann - Initial API and implementation |
| 11 | **********************************************************************/ |
| 12 | package org.eclipse.linuxtools.internal.lttng2.ui.views.control.model; |
| 13 | |
| 14 | /** |
| 15 | * <p> |
| 16 | * Listener interface a class can implement to be notified about changes |
| 17 | * of components |
| 18 | * </p> |
| 19 | * |
| 20 | * @author Bernd Hufmann |
| 21 | */ |
| 22 | public interface ITraceControlComponentChangedListener { |
| 23 | /** |
| 24 | * Interface for notifications about the addition of a component. |
| 25 | * @param parent - the parent where the child was added. |
| 26 | * @param component - the child that was added. |
| 27 | */ |
| 28 | void componentAdded(ITraceControlComponent parent, ITraceControlComponent component); |
| 29 | |
| 30 | /** |
| 31 | * Interface for notifications about the removal of a child. |
| 32 | * @param parent - the parent where the child was removed. |
| 33 | * @param component - the child that was removed. |
| 34 | */ |
| 35 | void componentRemoved(ITraceControlComponent parent, ITraceControlComponent component); |
| 36 | /** |
| 37 | * NInterface for notifications about the change of a component. |
| 38 | * @param component - the component that was changed. |
| 39 | */ |
| 40 | void componentChanged(ITraceControlComponent component); |
| 41 | } |
| 42 | |