Java Doc for NavigatorContentService.java in  » IDE-Eclipse » ui » org » eclipse » ui » internal » navigator » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » ui » org.eclipse.ui.internal.navigator 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.ui.internal.navigator.NavigatorContentService

NavigatorContentService
public class NavigatorContentService implements IExtensionActivationListener,IMementoAware,INavigatorContentService(Code)

Provides centralized access to the information provided by NavigatorContentExtensions. Can be instantiated as needed, but should be cached for active viewers. Information specific to a given viewer will be cached by the NavigatorContentService, not including ContentProviders and Label Providers created by NavigatorContentService.createCommonContentProvider() and NavigatorContentService.createCommonLabelProvider() respectively.

The following class is experimental until fully documented.




Constructor Summary
public  NavigatorContentService(String aViewerId)
    
public  NavigatorContentService(String aViewerId, StructuredViewer aViewer)
    

Method Summary
public  voidaddListener(INavigatorContentServiceListener aListener)
    
public  INavigatorContentDescriptor[]bindExtensions(String[] extensionIds, boolean isRoot)
    
public  ITreeContentProvidercreateCommonContentProvider()
    
public  IDescriptionProvidercreateCommonDescriptionProvider()
    
public  ILabelProvidercreateCommonLabelProvider()
    
public  voiddispose()
    
public  SetfindContentExtensionsByTriggerPoint(Object anElement)
     Search for extensions that declare the given element in their triggerPoints expression.
public  SetfindContentExtensionsByTriggerPoint(Object anElement, boolean toLoadIfNecessary)
     Search for extensions that declare the given element in their triggerPoints expression.
public  SetfindContentExtensionsWithPossibleChild(Object anElement)
     Search for extensions that declare the given element in their possibleChildren expression.
public  SetfindContentExtensionsWithPossibleChild(Object anElement, boolean toLoadIfNecessary)
     Search for extensions that declare the given element in their possibleChildren expression.
public  SetfindDescriptorsByTriggerPoint(Object anElement)
     Search for extensions that declare the given element in their triggerPoints expression.
public  SetfindDescriptorsWithPossibleChild(Object anElement)
     Search for extensions that declare the given element in their possibleChildren expression.
public  SetfindDescriptorsWithPossibleChild(Object anElement, boolean toComputeOverrides)
     Search for extensions that declare the given element in their possibleChildren expression.
Parameters:
  anElement - The element to use in the query
Parameters:
  toComputeOverrides - True indicates the overridden tree should be traversed.
public  SetfindOverrideableContentExtensionsByTriggerPoint(Object anElement)
     Search for extensions that declare the given element in their possibleChildren expression.
public  SetfindOverrideableContentExtensionsForPossibleChild(Object anElement)
     Search for extensions that declare the given element in their possibleChildren expression.
public  ITreeContentProvider[]findParentContentProviders(Object anElement)
     Return a set of content providers that could provide a parent for the given element.
public  ILabelProvider[]findRelevantLabelProviders(Object anElement)
     Return all of the label providers that are enabled for the given element. A label provider is 'enabled' if its corresponding content provider returned the element, or the element is described in the content extension's triggerPoints expression.
Parameters:
  anElement - An element from the tree (any element contributed to thetree).
public  SetfindRootContentExtensions(Object anElement)
     Search for extensions that declare the given element in their triggerPoints expression.
public  SetfindRootContentExtensions(Object anElement, boolean toRespectViewerRoots)
     Search for extensions that declare the given element in their triggerPoints expression.
Parameters:
  anElement - The element to use in the query
Parameters:
  toRespectViewerRoots - True respect the viewerContentBindings, False willlook only for matching triggerPoints expressions.
public  ITreeContentProvider[]findRootContentProviders(Object anElement)
    

Return all of the content providers that are relevant for the viewer.

public  IExtensionStateModelfindStateModel(String anExtensionId)
    
public  INavigatorActivationServicegetActivationService()
    
 INavigatorContentDescriptor[]getActiveDescriptorsWithSaveables()
    
public  INavigatorContentDescriptorgetContentDescriptorById(String anExtensionId)
    
public  INavigatorContentExtensiongetContentExtensionById(String anExtensionId)
    
Parameters:
  anExtensionId - The id used to define the org.eclipse.ui.navigator.navigatorContent/navigatorContent extension.
public  MapgetContributionMemory()
    
public  INavigatorDnDServicegetDnDService()
    
final public  NavigatorContentExtensiongetExtension(INavigatorContentDescriptor aDescriptorKey)
    
final public  NavigatorContentExtensiongetExtension(INavigatorContentDescriptor aDescriptorKey, boolean toLoadIfNecessary)
    
Parameters:
  aDescriptorKey -
Parameters:
  toLoadIfNecessary - True if the extension should be loaded if it is not already.
public  NavigatorExtensionStateServicegetExtensionStateService()
     Not API as of 3.3.
final protected  CollectiongetExtensions()
    
public  INavigatorFilterServicegetFilterService()
    
public  INavigatorPipelineServicegetPipelineService()
    
public  INavigatorSaveablesServicegetSaveablesService()
    
public  ShellgetShell()
     Non-API method to return a shell.
public  INavigatorSorterServicegetSorterService()
    
public  NavigatorContentDescriptorgetSourceOfContribution(Object element)
    
public  INavigatorViewerDescriptorgetViewerDescriptor()
    
final public  StringgetViewerId()
    
public  String[]getVisibleExtensionIds()
    
public  INavigatorContentDescriptor[]getVisibleExtensions()
    
public  booleanisActive(String anExtensionId)
    
protected  booleanisRootExtension(String anExtensionId)
    
public  booleanisVisible(String anExtensionId)
    
public  voidonExtensionActivation(String aViewerId, String[] aNavigatorExtensionId, boolean toEnable)
    
public synchronized  voidrememberContribution(NavigatorContentDescriptor source, Object[] elements)
    
public synchronized  voidrememberContribution(NavigatorContentDescriptor source, Object element)
    
public  voidremoveListener(INavigatorContentServiceListener aListener)
    
public  voidrestoreState(IMemento aMemento)
    
public  voidsaveState(IMemento aMemento)
    
public  StringtoString()
    
public  voidupdate()
    
protected  voidupdateService(Viewer aViewer, Object anOldInput, Object aNewInput)
    


Constructor Detail
NavigatorContentService
public NavigatorContentService(String aViewerId)(Code)

Parameters:
  aViewerId - The viewer id for this content service; normally from theorg.eclipse.ui.views extension.



NavigatorContentService
public NavigatorContentService(String aViewerId, StructuredViewer aViewer)(Code)

Parameters:
  aViewerId - The viewer id for this content service; normally from theorg.eclipse.ui.views extension.
Parameters:
  aViewer - The viewer that this content service will be associated with.




Method Detail
addListener
public void addListener(INavigatorContentServiceListener aListener)(Code)



bindExtensions
public INavigatorContentDescriptor[] bindExtensions(String[] extensionIds, boolean isRoot)(Code)



createCommonContentProvider
public ITreeContentProvider createCommonContentProvider()(Code)



createCommonDescriptionProvider
public IDescriptionProvider createCommonDescriptionProvider()(Code)



createCommonLabelProvider
public ILabelProvider createCommonLabelProvider()(Code)



dispose
public void dispose()(Code)



findContentExtensionsByTriggerPoint
public Set findContentExtensionsByTriggerPoint(Object anElement)(Code)
Search for extensions that declare the given element in their triggerPoints expression.
Parameters:
  anElement - The element to use in the query The set of INavigatorContentExtensions that arevisible and active for this content service andhave a triggerPoints expression that is enabledfor the given element.



findContentExtensionsByTriggerPoint
public Set findContentExtensionsByTriggerPoint(Object anElement, boolean toLoadIfNecessary)(Code)
Search for extensions that declare the given element in their triggerPoints expression.
Parameters:
  anElement - The element to use in the query
Parameters:
  toLoadIfNecessary - True will force the load of the extension, False will not The set of INavigatorContentExtensions that arevisible and active for this content service andhave a triggerPoints expression that is enabledfor the given element.



findContentExtensionsWithPossibleChild
public Set findContentExtensionsWithPossibleChild(Object anElement)(Code)
Search for extensions that declare the given element in their possibleChildren expression.
Parameters:
  anElement - The element to use in the query The set of INavigatorContentExtensions that arevisible and active for this content service andhave a possibleChildren expression that is enabledfor the given element.



findContentExtensionsWithPossibleChild
public Set findContentExtensionsWithPossibleChild(Object anElement, boolean toLoadIfNecessary)(Code)
Search for extensions that declare the given element in their possibleChildren expression.
Parameters:
  anElement - The element to use in the query
Parameters:
  toLoadIfNecessary - True will force the load of the extension, False will not The set of INavigatorContentExtensions that arevisible and active for this content service andhave a possibleChildren expression that is enabledfor the given element.



findDescriptorsByTriggerPoint
public Set findDescriptorsByTriggerPoint(Object anElement)(Code)
Search for extensions that declare the given element in their triggerPoints expression.
Parameters:
  anElement - The element to use in the query The set of INavigatorContentDescriptors that arevisible and active for this content service andhave a triggerPoints expression that is enabledfor the given element.



findDescriptorsWithPossibleChild
public Set findDescriptorsWithPossibleChild(Object anElement)(Code)
Search for extensions that declare the given element in their possibleChildren expression.
Parameters:
  anElement - The element to use in the query The set of INavigatorContentDescriptors that arevisible and active for this content service andhave a possibleChildren expression that is enabledfor the given element.



findDescriptorsWithPossibleChild
public Set findDescriptorsWithPossibleChild(Object anElement, boolean toComputeOverrides)(Code)
Search for extensions that declare the given element in their possibleChildren expression.
Parameters:
  anElement - The element to use in the query
Parameters:
  toComputeOverrides - True indicates the overridden tree should be traversed. The set of INavigatorContentDescriptors that arevisible and active for this content service andhave a possibleChildren expression that is enabledfor the given element.



findOverrideableContentExtensionsByTriggerPoint
public Set findOverrideableContentExtensionsByTriggerPoint(Object anElement)(Code)
Search for extensions that declare the given element in their possibleChildren expression.
Parameters:
  anElement - The element to use in the query The set of INavigatorContentExtensions that arevisible and active for this content service andhave a possibleChildren expression that is enabledfor the given element.



findOverrideableContentExtensionsForPossibleChild
public Set findOverrideableContentExtensionsForPossibleChild(Object anElement)(Code)
Search for extensions that declare the given element in their possibleChildren expression.
Parameters:
  anElement - The element to use in the query The set of INavigatorContentExtensions that arevisible and active for this content service andhave a possibleChildren expression that is enabledfor the given element.



findParentContentProviders
public ITreeContentProvider[] findParentContentProviders(Object anElement)(Code)
Return a set of content providers that could provide a parent for the given element. These content extensions are determined by consulting the possibleChildren expression in the navigatorContent extension.

Clients that wish to tap into the link with editor support must describe all of their possible children in their possibleChildren expressions.


Parameters:
  anElement - An element from the tree (generally from a setSelection()method). The set of content providers that may be able to provide aparent.



findRelevantLabelProviders
public ILabelProvider[] findRelevantLabelProviders(Object anElement)(Code)
Return all of the label providers that are enabled for the given element. A label provider is 'enabled' if its corresponding content provider returned the element, or the element is described in the content extension's triggerPoints expression.
Parameters:
  anElement - An element from the tree (any element contributed to thetree). The set of label providers that may be able to provide a valid(non-null) label.



findRootContentExtensions
public Set findRootContentExtensions(Object anElement)(Code)
Search for extensions that declare the given element in their triggerPoints expression.
Parameters:
  anElement - The element to use in the query The set of INavigatorContentExtensions that arevisible and active for this content service andeither declared through aorg.eclipse.ui.navigator.viewer/viewerContentBinding tobe a root element or have a triggerPoints expression thatis enabled for the given element.



findRootContentExtensions
public Set findRootContentExtensions(Object anElement, boolean toRespectViewerRoots)(Code)
Search for extensions that declare the given element in their triggerPoints expression.
Parameters:
  anElement - The element to use in the query
Parameters:
  toRespectViewerRoots - True respect the viewerContentBindings, False willlook only for matching triggerPoints expressions. The set of INavigatorContentExtensions that arevisible and active for this content service andeither declared through aorg.eclipse.ui.navigator.viewer/viewerContentBinding tobe a root element or have a triggerPoints expression thatis enabled for the given element.



findRootContentProviders
public ITreeContentProvider[] findRootContentProviders(Object anElement)(Code)

Return all of the content providers that are relevant for the viewer. The viewer is determined by the ID used to create the INavigatorContentService ( NavigatorContentService.getViewerId() ). See NavigatorContentService.createCommonContentProvider() for more information about how content providers are located for the root of the viewer. The root content providers are calculated once. If a new element is supplied, a client must call NavigatorContentService.update() prior in order to reset the calculated root providers.


Parameters:
  anElement - An element from the tree (generally the input of the viewer) The set of content providers that can provide root elements for aviewer.



findStateModel
public IExtensionStateModel findStateModel(String anExtensionId)(Code)



getActivationService
public INavigatorActivationService getActivationService()(Code)



getActiveDescriptorsWithSaveables
INavigatorContentDescriptor[] getActiveDescriptorsWithSaveables()(Code)



getContentDescriptorById
public INavigatorContentDescriptor getContentDescriptorById(String anExtensionId)(Code)



getContentExtensionById
public INavigatorContentExtension getContentExtensionById(String anExtensionId)(Code)

Parameters:
  anExtensionId - The id used to define the org.eclipse.ui.navigator.navigatorContent/navigatorContent extension. An instance of the content extension for the given extension id. May return null if the id is invalid.



getContributionMemory
public Map getContributionMemory()(Code)
Returns the contributionMemory.



getDnDService
public INavigatorDnDService getDnDService()(Code)



getExtension
final public NavigatorContentExtension getExtension(INavigatorContentDescriptor aDescriptorKey)(Code)

Parameters:
  aDescriptorKey - A descriptor The cached NavigatorContentExtension from the descriptor



getExtension
final public NavigatorContentExtension getExtension(INavigatorContentDescriptor aDescriptorKey, boolean toLoadIfNecessary)(Code)

Parameters:
  aDescriptorKey -
Parameters:
  toLoadIfNecessary - True if the extension should be loaded if it is not already. The instance of the extension for the given descriptor key.



getExtensionStateService
public NavigatorExtensionStateService getExtensionStateService()(Code)
Not API as of 3.3. The extension state service for this content service.



getExtensions
final protected Collection getExtensions()(Code)



getFilterService
public INavigatorFilterService getFilterService()(Code)



getPipelineService
public INavigatorPipelineService getPipelineService()(Code)



getSaveablesService
public INavigatorSaveablesService getSaveablesService()(Code)



getShell
public Shell getShell()(Code)
Non-API method to return a shell. A shell associated with the current viewer (if any) or null.



getSorterService
public INavigatorSorterService getSorterService()(Code)



getSourceOfContribution
public NavigatorContentDescriptor getSourceOfContribution(Object element)(Code)

Parameters:
  element - The element contributed by the descriptor to be returned The descriptor that contributed the element or null.
See Also:   NavigatorContentService.findContentExtensionsWithPossibleChild(Object)



getViewerDescriptor
public INavigatorViewerDescriptor getViewerDescriptor()(Code)



getViewerId
final public String getViewerId()(Code)



getVisibleExtensionIds
public String[] getVisibleExtensionIds()(Code)



getVisibleExtensions
public INavigatorContentDescriptor[] getVisibleExtensions()(Code)



isActive
public boolean isActive(String anExtensionId)(Code)



isRootExtension
protected boolean isRootExtension(String anExtensionId)(Code)



isVisible
public boolean isVisible(String anExtensionId)(Code)



onExtensionActivation
public void onExtensionActivation(String aViewerId, String[] aNavigatorExtensionId, boolean toEnable)(Code)



rememberContribution
public synchronized void rememberContribution(NavigatorContentDescriptor source, Object[] elements)(Code)
Remember that the elements in the given array came from the given source
Parameters:
  source - The descriptor of the extension that contributed the set ofelements.
Parameters:
  elements - An array of elements from the given source.



rememberContribution
public synchronized void rememberContribution(NavigatorContentDescriptor source, Object element)(Code)
Remember that the elements in the given array came from the given source
Parameters:
  source - The descriptor of the extension that contributed the set ofelements.
Parameters:
  element - An element from the given source.



removeListener
public void removeListener(INavigatorContentServiceListener aListener)(Code)



restoreState
public void restoreState(IMemento aMemento)(Code)



saveState
public void saveState(IMemento aMemento)(Code)



toString
public String toString()(Code)



update
public void update()(Code)



updateService
protected void updateService(Viewer aViewer, Object anOldInput, Object aNewInput)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.