Package org.eclipse.team.ui.synchronize
Class TeamStateDescription
- java.lang.Object
-
- org.eclipse.team.ui.synchronize.TeamStateDescription
-
- All Implemented Interfaces:
ITeamStateDescription
public class TeamStateDescription extends Object implements ITeamStateDescription
An implementation ofITeamStateDescription
.This class may be subclassed by clients.
- Since:
- 3.2
-
-
Constructor Summary
Constructors Constructor Description TeamStateDescription(int state)
Create a description with the given state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Return whether this state description is equal the to given object.int
getDirection()
Return the portion of the state flags that represent the direction associated with the element for which this description was generated.int
getKind()
Return the portion of the state flags that represent the kind associated with the element for which this description was generated.Object
getProperty(String property)
Return the value associated with the given property.String[]
getPropertyNames()
Return the properties names for all decorated properties associated with the element for which this description was generated.int
getStateFlags()
Return the synchronization state flags for the element for which this state description was generated.void
setProperty(String property, Object value)
Set the given property to the given value
-
-
-
Method Detail
-
getStateFlags
public int getStateFlags()
Description copied from interface:ITeamStateDescription
Return the synchronization state flags for the element for which this state description was generated. Only the portion of the synchronization state covered bystateMask
used when obtaining this description is returned.- Specified by:
getStateFlags
in interfaceITeamStateDescription
- Returns:
- the synchronization state of the given element
- See Also:
IDiff
,IThreeWayDiff
,IResourceDiff
-
getKind
public int getKind()
Description copied from interface:ITeamStateDescription
Return the portion of the state flags that represent the kind associated with the element for which this description was generated. SeeIDiff.getKind()
for a description of what this value represents.- Specified by:
getKind
in interfaceITeamStateDescription
- Returns:
- the kind associated with the element for which this description was generated
-
getDirection
public int getDirection()
Description copied from interface:ITeamStateDescription
Return the portion of the state flags that represent the direction associated with the element for which this description was generated. SeeIThreeWayDiff.getDirection()
for a description of what this value represents.- Specified by:
getDirection
in interfaceITeamStateDescription
- Returns:
- the direction associated with the element for which this description was generated
-
getPropertyNames
public String[] getPropertyNames()
Description copied from interface:ITeamStateDescription
Return the properties names for all decorated properties associated with the element for which this description was generated.- Specified by:
getPropertyNames
in interfaceITeamStateDescription
- Returns:
- the properties names for all decorated properties
-
getProperty
public Object getProperty(String property)
Description copied from interface:ITeamStateDescription
Return the value associated with the given property. Anull
is returned if the property has no value.- Specified by:
getProperty
in interfaceITeamStateDescription
- Parameters:
property
- the property- Returns:
- the value associated with the given property or
null
-
setProperty
public void setProperty(String property, Object value)
Set the given property to the given value- Parameters:
property
- the propertyvalue
- the value
-
equals
public boolean equals(Object obj)
Description copied from interface:ITeamStateDescription
Return whether this state description is equal the to given object. Clients should use this method to test whether two state descriptions are equal.- Specified by:
equals
in interfaceITeamStateDescription
- Overrides:
equals
in classObject
- Parameters:
obj
- the object- Returns:
- whether this state description is equal the to given object
-
-