blob: 021f3cdd22ac432ea66c7f344471c1902521009e (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
/*******************************************************************************
* 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 org.eclipse.core.resources.IResource;
import org.eclipse.team.ui.synchronize.TeamStateChangeEvent;
/**
* A description of the team state changes that have occurred. This event
* indicates the resources for which the team state may have changed.
* However, it may be the case that the state did not actually change. Clients
* that wish to determine if the state ha changed must cache the previous state
* and re-obtain the state when they receive this event. Also, the event may
* not include team state changes that resulted from local changes. Clients should listen
* for resource changes as well.
* <p>
* This interface is not intended to be implemented by clients. Clients should
* instead use {@link TeamStateChangeEvent}.
*
* @see ITeamStateChangeListener
* @see ITeamStateProvider
* @see TeamStateChangeEvent
*
* @since 3.2
*/
public interface ITeamStateChangeEvent {
/**
* Return the set of resources that were previously undecorated
* but are now decorated.
* @return the set of resources that were previously undecorated
* but are now decorated.
*/
public IResource[] getAddedRoots();
/**
* Return the set of resources that were previously decorated
* but are now undecorated.
* @return the set of resources that were previously decorated
* but are now undecorated.
*/
public IResource[] getRemovedRoots();
/**
* Return the set of resources whose decorated state has changed.
* @return the set of resources whose decorated state has changed.
*/
public IResource[] getChangedResources();
/**
* Return whether the resource has any state changes. This returns
* <code>true</code> if the resource is included in the set
* of changes returned by {@link #getChangedResources()} or
* if it is a descendant of a root that is present in a set
* returned by {@link #getAddedRoots()} or {@link #getRemovedRoots()}.
*
* @param resource the resource
* @return whether the resource has any state changes
*/
public boolean hasChange(IResource resource);
}
|