|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.team.ui.synchronize.TeamStateProvider
public abstract class TeamStateProvider
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.
IAdapterManager,
RepositoryProviderType| Field Summary |
|---|
| Fields inherited from interface org.eclipse.team.ui.mapping.ITeamStateProvider |
|---|
USE_DECORATED_STATE_MASK |
| Constructor Summary | |
|---|---|
TeamStateProvider()
|
|
| Method Summary | |
|---|---|
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(java.lang.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(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.team.ui.mapping.ITeamStateProvider |
|---|
getDecoratedProperties, getResourceMappingContext, getStateDescription, hasDecoratedState |
| Constructor Detail |
|---|
public TeamStateProvider()
| Method Detail |
|---|
public boolean isDecorationEnabled(java.lang.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 element
ITeamStateProvider.isDecorationEnabled(java.lang.Object)public int getDecoratedStateMask(java.lang.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 decorated
ITeamStateProvider.getDecoratedStateMask(java.lang.Object)public void addDecoratedStateChangeListener(ITeamStateChangeListener listener)
ITeamStateProvider
addDecoratedStateChangeListener in interface ITeamStateProviderlistener - the listenerpublic void removeDecoratedStateChangeListener(ITeamStateChangeListener listener)
ITeamStateProvider
removeDecoratedStateChangeListener in interface ITeamStateProviderlistener - the listenerprotected final void fireStateChangeEvent(ITeamStateChangeEvent event)
event - the change event
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.