Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

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.

Method Summary
 boolean arePossibleChildren ( IStructuredSelection aSelection)
          A convenience method to check all elements in a selection.
  String getId ()
          Returns the navigator content extension id
  String getName ()
          Returns the name of this navigator extension
  INavigatorContentDescriptor getOverriddenDescriptor ()
           
  Set getOverriddingExtensions ()
           
  OverridePolicy getOverridePolicy ()
           
 int getPriority ()
          Returns the priority of the navigator content extension.
  String getSuppressedExtensionId ()
           
 boolean hasOverridingExtensions ()
          Does not force the creation of the set of overriding extensions.
 boolean hasSaveablesProvider ()
           
 boolean isActiveByDefault ()
          The enabledByDefault attribute specifies whether an extension should be activated in the context of a viewer automatically.
 boolean isPossibleChild ( Object anElement)
          Determine if this content extension could provide the given element as a child.
 boolean isTriggerPoint ( Object anElement)
          Determine if this content extension is enabled for the given element.
 

Method Detail

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.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire