1 /******************************************************************************* 2 * Copyright (c) 2006 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.team.ui.mapping; 12 13 import java.util.EventListener; 14 15 import org.eclipse.core.resources.IWorkspace; 16 import org.eclipse.team.ui.synchronize.TeamStateProvider; 17 18 /** 19 * A listener registered with an {@link TeamStateProvider} in order to 20 * receive change events when the team state of any 21 * resources change. It is the responsibility of clients to determine if 22 * a label update is required based on the changed resources. 23 * <p> 24 * Change events may not be issued if a local change has resulted in a 25 * synchronization state change. It is up to clients to check whether 26 * a label update is required for a model element when local resources change 27 * by using the resource delta mechanism. 28 * <p> 29 * Clients may implement this interface 30 * 31 * @see IWorkspace#addResourceChangeListener(org.eclipse.core.resources.IResourceChangeListener) 32 * @since 3.2 33 */ 34 public interface ITeamStateChangeListener extends EventListener { 35 36 /** 37 * Notification that the team state of resources 38 * has changed. 39 * @param event the event that describes which resources have changed 40 */ 41 public void teamStateChanged(ITeamStateChangeEvent event); 42 43 } 44