public interface ITeamContentProviderManager
org.eclipse.team.ui.teamContentProviders
extension point. A team content provider defines a mapping between
a ModelProvider
and a content extension registered with
the org.eclipse.ui.navigator.navigatorContent
extension point.
This interface is not intended to be implemented by clients.
TeamUI.getTeamContentProviderManager()
,
ModelProvider
Modifier and Type | Field and Description |
---|---|
static String |
FLAT_LAYOUT
Value for the PROP_PAGE_LAYOUT that indicates that the models should display
their elements as a flat list.
|
static String |
P_SYNCHRONIZATION_CONTEXT
Property constant used to store and retrieve the synchronization context
from the
IExtensionStateModel used by
the Common Navigator framework. |
static String |
P_SYNCHRONIZATION_PAGE_CONFIGURATION
Property constant used to store and retrieve the synchronization page
configuration from the
IExtensionStateModel used by the Common
Navigator framework. |
static String |
P_SYNCHRONIZATION_SCOPE
Property constant used to store and retrieve the resource mapping scope
from the
IExtensionStateModel used by
the Common Navigator framework. |
static String |
PROP_ENABLED_MODEL_PROVIDERS
Property constant used during property change notification to indicate
that one one or more model providers have either been enabled or disabled.
|
static String |
PROP_PAGE_LAYOUT
Property constant used to store and retrieve the page layout
from the
ISynchronizePageConfiguration when models are being
shown in an ISynchronizePage . |
static String |
TREE_LAYOUT
Value for the PROP_PAGE_LAYOUT that indicates that the models should display
their elements in tree form.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(IPropertyChangeListener listener)
Add a property change listener to the manager.
|
String[] |
getContentProviderIds(ISynchronizationScope scope)
Convenience method that returns the list of all enabled content extension ids for
models that have mappings in the given scope.
|
ITeamContentProviderDescriptor |
getDescriptor(String modelProviderId)
Return the team content provider descriptor for the
given model provider id.
|
ITeamContentProviderDescriptor[] |
getDescriptors()
Return descriptors for all the registered content extensions.
|
void |
removePropertyChangeListener(IPropertyChangeListener listener)
Remove a property change listener from the manager.
|
void |
setEnabledDescriptors(ITeamContentProviderDescriptor[] descriptors)
Enable the given content descriptors, disabling all others.
|
static final String P_SYNCHRONIZATION_PAGE_CONFIGURATION
IExtensionStateModel
used by the Common
Navigator framework.static final String P_SYNCHRONIZATION_CONTEXT
IExtensionStateModel
used by
the Common Navigator framework. It is also used to associate a context
with an ISynchronizePageConfiguration
when models are being
shown in an ISynchronizePage
.static final String P_SYNCHRONIZATION_SCOPE
IExtensionStateModel
used by
the Common Navigator framework. It is also used to associate a scope
with an ISynchronizePageConfiguration
when models are being
shown in an ISynchronizePage
.static final String PROP_PAGE_LAYOUT
ISynchronizePageConfiguration
when models are being
shown in an ISynchronizePage
. At this time, there are two layouts,
TREE_LAYOUT and FLAT_LAYOUT. Other may be addedstatic final String TREE_LAYOUT
static final String FLAT_LAYOUT
teamContentProviders
that they support the flat layout will be enabled when the PROP_PAGE_LAYOUT is set
to FLAT_LAYOUT.static final String PROP_ENABLED_MODEL_PROVIDERS
ITeamContentProviderDescriptor[] getDescriptors()
ITeamContentProviderDescriptor getDescriptor(String modelProviderId)
null
is
returned if no extension is registered.modelProviderId
- the model provider idnull
void addPropertyChangeListener(IPropertyChangeListener listener)
listener
- the listenervoid removePropertyChangeListener(IPropertyChangeListener listener)
listener
- the listenerString[] getContentProviderIds(ISynchronizationScope scope)
scope
- the scopevoid setEnabledDescriptors(ITeamContentProviderDescriptor[] descriptors)
PROP_ENABLED_MODEL_PROVIDERS
property change event to any registered listeners.descriptors
- the descriptors to be enabled.ITeamContentProviderDescriptor.isEnabled()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.