org.eclipse.ui.navigator
Interface INavigatorContentDescriptor
-
public interface INavigatorContentDescriptor
The descriptor provides a the low-level handle to a content extension. Information such as
the Id, the name, the priority, and whether the descriptor provides one or
more root elements is provided. This descriptor is used to form the
INavigatorContentExtension
.
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.
getId
String getId()
- Returns the navigator content extension id
-
-
Returns:
- the navigator content extension id
getName
String getName()
- Returns the name of this navigator extension
-
-
Returns:
- the name of this navigator extension
getPriority
int getPriority()
- Returns the priority of the navigator content extension.
-
-
Returns:
- the priority of the navigator content extension. Returns
Priority.NORMAL
if no priority was specified.
isActiveByDefault
boolean isActiveByDefault()
- The enabledByDefault attribute specifies whether an extension should be
activated in the context of a viewer automatically. Users may override
this setting through the "Types of Content" dialog.
-
-
Returns:
- true if the extension is enabled by default.
isTriggerPoint
boolean isTriggerPoint(
Object anElement)
- Determine if this content extension is enabled for the given element.
-
-
Parameters:
-
anElement
- The element that should be used for the evaluation.
-
Returns:
- True if and only if the extension is enabled for the element.
isPossibleChild
boolean 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.
-
Returns:
- True if and only if the extension might provide an object of this
type as a child.
arePossibleChildren
boolean arePossibleChildren(
IStructuredSelection aSelection)
- A convenience method to check all elements in a selection.
-
-
Parameters:
-
aSelection
- A non-null selection
-
Returns:
- True if and only if every element in the selection is a possible
child.
getSuppressedExtensionId
String getSuppressedExtensionId()
-
-
Returns:
- Returns the suppressedExtensionId or null if none specified.
getOverridePolicy
OverridePolicy getOverridePolicy()
-
-
Returns:
- Returns the overridePolicy or null if this extension does not
override another extension.
-
Since:
- 3.4
getOverriddenDescriptor
INavigatorContentDescriptor getOverriddenDescriptor()
-
-
Returns:
- The descriptor of the
suppressedExtensionId
if
non-null.
hasOverridingExtensions
boolean hasOverridingExtensions()
- Does not force the creation of the set of overriding extensions.
-
-
Returns:
- True if this extension has overriding extensions.
getOverriddingExtensions
Set getOverriddingExtensions()
-
-
Returns:
- The set of overriding extensions (of type
INavigatorContentDescriptor
)
hasSaveablesProvider
boolean hasSaveablesProvider()
-
-
Returns:
- true if the extension's content provider may adapt to a
SaveablesProvider
.
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.