Encapsulates the org.eclipse.ui.navigator.navigatorContent
extension point.
EXPERIMENTAL. This class or interface has been added as
part of a work in progress. There is a guarantee neither that this API will
work nor that it will remain the same. Please do not use this API without
consulting with the Platform/UI team.
since: 3.2
Constructor Summary
NavigatorContentDescriptor(IConfigurationElement configElement) Creates a new content descriptor from a configuration element.
Parameters: configElement - configuration element to create a descriptor from throws: WorkbenchException - if the configuration element could not be parsed.
Method Summary
public boolean
arePossibleChildren(IStructuredSelection aSelection) A convenience method to check all elements in a selection.
isPossibleChild(Object anElement) Determine if this content extension could provide the given element as a
child.
This method is used to determine what the parent of an element could be
for Link with Editor support.
Parameters: anElement - The element that should be used for the evaluation.
public boolean
isTriggerPoint(Object anElement) Determine if this content extension would be able to provide children for
the given element.
Parameters: anElement - The element that should be used for the evaluation.
Creates a new content descriptor from a configuration element.
Parameters: configElement - configuration element to create a descriptor from throws: WorkbenchException - if the configuration element could not be parsed. Reasonsinclude:
A required attribute is missing.
More elements are define than is allowed.
Method Detail
arePossibleChildren
public boolean arePossibleChildren(IStructuredSelection aSelection)(Code)
A convenience method to check all elements in a selection.
Parameters: aSelection - A non-null selection True if and only if every element in the selection is a possible child.
createContentProvider
public ITreeContentProvider createContentProvider() throws CoreException(Code)
The content provider could be an instance of
ICommonContentProvider , but only
ITreeContentProvider is
required.
An instance of the Content provider defined for this extension. throws: CoreException - if an instance of the executable extension could not becreated for any reason
createLabelProvider
public ILabelProvider createLabelProvider() throws CoreException(Code)
The content provider could be an instance of
ICommonLabelProvider ,
but only
ILabelProvider is required.
An instance of the Label provider defined for this extension throws: CoreException - if an instance of the executable extension could not becreated for any reason
getContribution
public IPluginContribution getContribution()(Code)
public boolean isPossibleChild(Object anElement)(Code)
Determine if this content extension could provide the given element as a
child.
This method is used to determine what the parent of an element could be
for Link with Editor support.
Parameters: anElement - The element that should be used for the evaluation. True if and only if the extension might provide an object of thistype as a child.
isTriggerPoint
public boolean isTriggerPoint(Object anElement)(Code)
Determine if this content extension would be able to provide children for
the given element.
Parameters: anElement - The element that should be used for the evaluation. True if and only if the extension is enabled for the element.