Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 18fea6a2d65d0cf5a4e0f4778306953d80b33383 (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
/*******************************************************************************
 * Copyright (c) 2011, 2012 Wind River Systems, Inc. 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:
 * Wind River Systems - initial API and implementation
 *******************************************************************************/
package org.eclipse.tcf.te.tcf.locator.interfaces;

import org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel;
import org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode;

/**
 * Interface for clients to implement that wishes to listen to changes to the locator model.
 */
public interface IModelListener {

	/**
	 * Invoked if a peer is added or removed to/from the locator model.
	 *
	 * @param model The changed locator model.
	 * @param peerNode The added/removed peer model node.
	 * @param added <code>True</code> if the peer model node got added, <code>false</code> if it got removed.
	 */
	public void locatorModelChanged(IPeerModel model, IPeerNode peerNode, boolean added);

	/**
	 * Invoked if the locator model is disposed.
	 *
	 * @param model The disposed locator model.
	 */
	public void locatorModelDisposed(IPeerModel model);
}

Back to the top