public abstract class TeamStateProvider extends Object implements ITeamStateProvider
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.
IAdapterManager,
RepositoryProviderTypeUSE_DECORATED_STATE_MASK| Constructor and Description |
|---|
TeamStateProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDecoratedStateChangeListener(ITeamStateChangeListener listener)
Add a decorated state change listener to the provider.
|
protected void |
fireStateChangeEvent(ITeamStateChangeEvent event)
Fire the change event to all listeners.
|
int |
getDecoratedStateMask(Object element)
Determine the decorated state for the element by consulting the
teamDecorator extension point to get the decorated state
mask associated with the resources the element maps to. |
boolean |
isDecorationEnabled(Object element)
Determine if the decorator for the element is enabled by consulting the
teamDecorator extension point to determine the decorator
id associated with the resources the element maps to. |
void |
removeDecoratedStateChangeListener(ITeamStateChangeListener listener)
Remove the decorated state change listener to the provider.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDecoratedProperties, getResourceMappingContext, getStateDescription, hasDecoratedStatepublic boolean isDecorationEnabled(Object element)
teamDecorator extension point to determine the decorator
id associated with the resources the element maps to. Subclasses may
override.isDecorationEnabled in interface ITeamStateProviderelement - the model elementITeamStateProvider.isDecorationEnabled(java.lang.Object)public int getDecoratedStateMask(Object element)
teamDecorator extension point to get the decorated state
mask associated with the resources the element maps to. Subclasses may
override.getDecoratedStateMask in interface ITeamStateProviderelement - the model element to be decoratedITeamStateProvider.getDecoratedStateMask(java.lang.Object)public void addDecoratedStateChangeListener(ITeamStateChangeListener listener)
ITeamStateProvideraddDecoratedStateChangeListener in interface ITeamStateProviderlistener - the listenerpublic void removeDecoratedStateChangeListener(ITeamStateChangeListener listener)
ITeamStateProviderremoveDecoratedStateChangeListener in interface ITeamStateProviderlistener - the listenerprotected final void fireStateChangeEvent(ITeamStateChangeEvent event)
event - the change eventGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.