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
,
RepositoryProviderType
USE_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, wait
getDecoratedProperties, getResourceMappingContext, getStateDescription, hasDecoratedState
public 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 ITeamStateProvider
element
- 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 ITeamStateProvider
element
- the model element to be decoratedITeamStateProvider.getDecoratedStateMask(java.lang.Object)
public void addDecoratedStateChangeListener(ITeamStateChangeListener listener)
ITeamStateProvider
addDecoratedStateChangeListener
in interface ITeamStateProvider
listener
- the listenerpublic void removeDecoratedStateChangeListener(ITeamStateChangeListener listener)
ITeamStateProvider
removeDecoratedStateChangeListener
in interface ITeamStateProvider
listener
- the listenerprotected final void fireStateChangeEvent(ITeamStateChangeEvent event)
event
- the change event
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.