Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ad5748a0c76ba235a971df0159a13209826b1e47 (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
/*******************************************************************************
 * Copyright (c) 2006 IBM Corporation 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:
 * IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.team.ui.mapping;

import java.util.EventListener;

import org.eclipse.core.resources.IWorkspace;
import org.eclipse.team.ui.synchronize.TeamStateProvider;

/**
 * A listener registered with an {@link TeamStateProvider} in order to
 * receive change events when the team state of any
 * resources change. It is the responsibility of clients to determine if
 * a label update is required based on the changed resources.
 * <p>
 * Change events may not be issued if a local change has resulted in a
 * synchronization state change. It is up to clients to check whether
 * a label update is required for a model element when local resources change
 * by using the resource delta mechanism.
 * <p>
 * Clients may implement this interface
 *
 * @see IWorkspace#addResourceChangeListener(org.eclipse.core.resources.IResourceChangeListener)
 * @since 3.2
 */
public interface ITeamStateChangeListener extends EventListener {

	/**
	 * Notification that the team state of resources
	 * has changed.
	 * @param event the event that describes which resources have changed
	 */
	public void teamStateChanged(ITeamStateChangeEvent event);

}

Back to the top