Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 2ce74c3ca38db9796100c6342295af39ed3dcddd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*****************************************************************************
 * Copyright (c) 2013 Cedric Dumoulin.
 *
 *
 * 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:
 *  Cedric Dumoulin  Cedric.dumoulin@lifl.fr - Initial API and implementation
 *
 *****************************************************************************/

package org.eclipse.papyrus.infra.core.sasheditor.utils;


/**
 * Class wishing to observe a {@link IObservableList} can implements this interface and register it
 * to the List.
 *
 * @author cedric dumoulin
 *
 * @param E
 *            Type of the element of the list.
 */
public interface IObservableListListener<E> {


	/**
	 * Method called when an element is added to the list.
	 *
	 * @param element
	 */
	public void elementAdded(E element);

	/**
	 * Method called when an element is removed from the list.
	 *
	 * @param element
	 */
	public void elementRemoved(E element);

}

Back to the top