Package org.eclipse.ui.navigator
Interface INavigatorContentExtension
- All Superinterfaces:
IAdaptable
The content extension represents the components of a navigatorContent
extension. These handles are managed by a content service
INavigatorContentService. An extension is formed from the
INavigatorContentDescriptor.
There is a one-to-many correspondence between the INavigatorContentDescriptor and
INavigatorContentExtension. An instance of the INavigatorContentExtension is
created for each INavigatorContentDescriptor used by a
INavigatorContentService.
- Since:
- 3.2
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Method Summary
Modifier and TypeMethodDescriptionClients may choose to implementICommonContentProvider, but are only required to supply an implementation ofITreeContentProvider.There is one descriptor for all instances of a INavigatorContentExtension.getId()The real underlying implementation may only support theILabelProviderinterface, but a simple delegate is used when this is the case to ensure that clients may anticipate anICommonLabelProviderinterface.booleanisLoaded()Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
-
Method Details
-
getId
String getId()- Returns:
- The id attribute of the navigatorContent extension.
-
getDescriptor
INavigatorContentDescriptor getDescriptor()There is one descriptor for all instances of a INavigatorContentExtension.- Returns:
- A handle to the descriptor used to manage this extension.
-
getContentProvider
ITreeContentProvider getContentProvider()Clients may choose to implementICommonContentProvider, but are only required to supply an implementation ofITreeContentProvider.- Returns:
- The content provider defined by the navigatorContent extension.
- See Also:
-
getLabelProvider
ICommonLabelProvider getLabelProvider()The real underlying implementation may only support theILabelProviderinterface, but a simple delegate is used when this is the case to ensure that clients may anticipate anICommonLabelProviderinterface.Since 3.4, the returned label provider may also implement
DelegatingStyledCellLabelProvider.IStyledLabelProviderto provide styled text labels. Note that the empty styled string signals that the label provider does not wish to render the label.- Returns:
- The content provider defined by the navigatorContent extension.
- See Also:
-
isLoaded
boolean isLoaded()- Returns:
- True if any class has been instantiated by this extension.
-
getStateModel
IExtensionStateModel getStateModel()- Returns:
- The state model associated with this content extension.
- See Also:
-