Package org.eclipse.team.ui.synchronize
Class TeamStateProvider
java.lang.Object
org.eclipse.team.ui.synchronize.TeamStateProvider
- All Implemented Interfaces:
- ITeamStateProvider
- Direct Known Subclasses:
- SubscriberTeamStateProvider
A team state provider is used by the 
SynchronizationStateTester to obtain
 the team state for model elements. A team state provider is
 associated with a RepositoryProviderType using the adaptable mechanism. A default
 team state provider that uses the subscriber of the type is provided.
 Clients may subclass this class.
- Since:
- 3.2
- See Also:
- 
Field SummaryFields inherited from interface org.eclipse.team.ui.mapping.ITeamStateProviderUSE_DECORATED_STATE_MASK
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd a decorated state change listener to the provider.protected final voidFire the change event to all listeners.intgetDecoratedStateMask(Object element) Determine the decorated state for the element by consulting theteamDecoratorextension point to get the decorated state mask associated with the resources the element maps to.booleanisDecorationEnabled(Object element) Determine if the decorator for the element is enabled by consulting theteamDecoratorextension point to determine the decorator id associated with the resources the element maps to.voidRemove the decorated state change listener to the provider.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.team.ui.mapping.ITeamStateProvidergetDecoratedProperties, getResourceMappingContext, getStateDescription, hasDecoratedState
- 
Constructor Details- 
TeamStateProviderpublic TeamStateProvider()
 
- 
- 
Method Details- 
isDecorationEnabledDetermine if the decorator for the element is enabled by consulting theteamDecoratorextension point to determine the decorator id associated with the resources the element maps to. Subclasses may override.- Specified by:
- isDecorationEnabledin interface- ITeamStateProvider
- Parameters:
- element- the model element
- Returns:
- whether decoration is enabled for the given model element
- See Also:
 
- 
getDecoratedStateMaskDetermine the decorated state for the element by consulting theteamDecoratorextension point to get the decorated state mask associated with the resources the element maps to. Subclasses may override.- Specified by:
- getDecoratedStateMaskin interface- ITeamStateProvider
- Parameters:
- element- the model element to be decorated
- Returns:
- the mask that indicates what state the appropriate team decorator will decorate
- See Also:
 
- 
addDecoratedStateChangeListenerDescription copied from interface:ITeamStateProviderAdd a decorated state change listener to the provider. Adding the same listener more than once has no effect.- Specified by:
- addDecoratedStateChangeListenerin interface- ITeamStateProvider
- Parameters:
- listener- the listener
 
- 
removeDecoratedStateChangeListenerDescription copied from interface:ITeamStateProviderRemove the decorated state change listener to the provider. Removing a listener that is not registered has no effect.- Specified by:
- removeDecoratedStateChangeListenerin interface- ITeamStateProvider
- Parameters:
- listener- the listener
 
- 
fireStateChangeEventFire the change event to all listeners.- Parameters:
- event- the change event
 
 
-