Java Doc for ObjectContributorManager.java in  » IDE-Eclipse » ui-workbench » org » eclipse » ui » internal » 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 workbench » org.eclipse.ui.internal 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.ui.internal.ObjectContributorManager

All known Subclasses:   org.eclipse.ui.internal.decorators.LightweightDecoratorManager,  org.eclipse.ui.internal.ObjectActionContributorManager,  org.eclipse.ui.internal.dialogs.PropertyPageContributorManager,
ObjectContributorManager
abstract public class ObjectContributorManager implements IExtensionChangeHandler(Code)
This class is a default implementation of IObjectContributorManager. It provides fast merging of contributions with the following semantics:
  • All of the matching contributors will be invoked per property lookup
  • The search order from a class with the definition
    class X extends Y implements A, B
    is as follows:
  • the target's class: X
  • X's superclasses in order to Object
  • a depth-first traversal of the target class's interaces in the order returned by getInterfaces() (in the example, A and its superinterfaces then B and its superinterfaces)

See Also:   IObjectContributor


Field Summary
protected  MapadaptableLookup
     Cache of adaptable class contributor search paths; null if none.
protected  SetcontributorRecordSet
    
protected  Mapcontributors
     Table of contributors.
protected  MapobjectLookup
     Cache of object class contributor search paths; null if none.
protected  MapresourceAdapterLookup
     Cache of resource adapter class contributor search paths; null if none.

Constructor Summary
public  ObjectContributorManager()
     Constructs a new contributor manager.

Method Summary
protected  ListaddContributorsFor(Class objectClass)
     Return the list of contributors for the supplied class.
protected  booleancanHandleExtensionTracking()
     Return whether or not the receiver handles extension tracking.
final protected  ListcomputeClassOrder(Class extensibleClass)
     Returns the class search order starting with extensibleClass.
protected  ListcomputeCombinedOrder(Class inputClass)
     Returns the class search order starting with extensibleClass.
final protected  ListcomputeInterfaceOrder(List classList)
     Returns the interface search order for the class hierarchy described by classList.
public  voiddispose()
     Remove listeners and dispose of this manager.
public  voidflushLookup()
     Flushes the cache of contributor search paths.
protected  ListgetAdaptableContributors(String adapterType)
     Returns the contributions for the given type name.
public  CollectiongetContributors()
     Get the contributions registered to this manager. an unmodifiable Collection containing all registeredcontributions.
protected  ListgetContributors(Object object)
    
protected  ListgetContributors(List elements)
     Returns the list of contributors that are interested in the given list of model elements.
protected  ListgetObjectContributors(Class objectClass)
     Returns the contributions for the given class.
protected  ListgetResourceContributors(Class resourceClass)
     Returns the contributions for the given IResourceclass.
public  booleanhasContributorsFor(Object object)
     Returns true if contributors exist in the manager for this object and any of it's super classes, interfaces, or adapters.
public  booleanisApplicableTo(IStructuredSelection selection, IObjectContributor contributor)
     Return whether the given contributor is applicable to all elements in the selection.
public  booleanisApplicableTo(List list, IObjectContributor contributor)
     Return whether the given contributor is applicable to all elements in the list.
public  voidregisterContributor(IObjectContributor contributor, String targetType)
     Register a contributor.
protected  voidremoveCommonAdapters(List adapters, List results)
     Prunes from the list of adapters type names that are in the class search order of every class in results.
public  voidremoveExtension(IExtension source, Object[] objects)
    
public  voidunregisterAllContributors()
     Unregister all contributors.
public  voidunregisterContributor(IObjectContributor contributor, String targetType)
     Unregister a contributor from the target type.
public  voidunregisterContributors(String targetType)
     Unregister all contributors for the target type.

Field Detail
adaptableLookup
protected Map adaptableLookup(Code)
Cache of adaptable class contributor search paths; null if none.



contributorRecordSet
protected Set contributorRecordSet(Code)



contributors
protected Map contributors(Code)
Table of contributors.



objectLookup
protected Map objectLookup(Code)
Cache of object class contributor search paths; null if none.



resourceAdapterLookup
protected Map resourceAdapterLookup(Code)
Cache of resource adapter class contributor search paths; null if none.




Constructor Detail
ObjectContributorManager
public ObjectContributorManager()(Code)
Constructs a new contributor manager.




Method Detail
addContributorsFor
protected List addContributorsFor(Class objectClass)(Code)
Return the list of contributors for the supplied class.



canHandleExtensionTracking
protected boolean canHandleExtensionTracking()(Code)
Return whether or not the receiver handles extension tracking. Default is true. Subclasses may override. boolean true if it should be registeredas an extension handler.



computeClassOrder
final protected List computeClassOrder(Class extensibleClass)(Code)
Returns the class search order starting with extensibleClass. The search order is defined in this class' comment.



computeCombinedOrder
protected List computeCombinedOrder(Class inputClass)(Code)
Returns the class search order starting with extensibleClass. The search order is defined in this class' comment.



computeInterfaceOrder
final protected List computeInterfaceOrder(List classList)(Code)
Returns the interface search order for the class hierarchy described by classList. The search order is defined in this class' comment.



dispose
public void dispose()(Code)
Remove listeners and dispose of this manager.
since:
   3.1



flushLookup
public void flushLookup()(Code)
Flushes the cache of contributor search paths. This is generally required whenever a contributor is added or removed.

It is likely easier to just toss the whole cache rather than trying to be smart and remove only those entries affected.




getAdaptableContributors
protected List getAdaptableContributors(String adapterType)(Code)
Returns the contributions for the given type name.
Parameters:
  adapterType - the class to search for contributions. the contributions for the given class. This considerscontributors to this specific type.
since:
   3.1



getContributors
public Collection getContributors()(Code)
Get the contributions registered to this manager. an unmodifiable Collection containing all registeredcontributions. The objects in this Collection will be Lists containing the actual contributions.
since:
   3.0



getContributors
protected List getContributors(Object object)(Code)



getContributors
protected List getContributors(List elements)(Code)
Returns the list of contributors that are interested in the given list of model elements.
Parameters:
  elements - a list of model elements (Object) the list of interested contributors (IObjectContributor)



getObjectContributors
protected List getObjectContributors(Class objectClass)(Code)
Returns the contributions for the given class. This considers contributors on any super classes and interfaces.
Parameters:
  objectClass - the class to search for contributions. the contributions for the given class. This considerscontributors on any super classes and interfaces.
since:
   3.1



getResourceContributors
protected List getResourceContributors(Class resourceClass)(Code)
Returns the contributions for the given IResourceclass. This considers contributors on any super classes and interfaces. This will only return contributions that are adaptable.
Parameters:
  resourceClass - the class to search for contributions. the contributions for the given class. This considersadaptable contributors on any super classes and interfaces.
since:
   3.1



hasContributorsFor
public boolean hasContributorsFor(Object object)(Code)
Returns true if contributors exist in the manager for this object and any of it's super classes, interfaces, or adapters.
Parameters:
  object - the object to test whether the object has contributors



isApplicableTo
public boolean isApplicableTo(IStructuredSelection selection, IObjectContributor contributor)(Code)
Return whether the given contributor is applicable to all elements in the selection.
Parameters:
  selection - the selection
Parameters:
  contributor - the contributor whether it is applicable



isApplicableTo
public boolean isApplicableTo(List list, IObjectContributor contributor)(Code)
Return whether the given contributor is applicable to all elements in the list.
Parameters:
  list - the selection
Parameters:
  contributor - the contributor whether it is applicable



registerContributor
public void registerContributor(IObjectContributor contributor, String targetType)(Code)
Register a contributor.
Parameters:
  contributor - the contributor
Parameters:
  targetType - the target type



removeCommonAdapters
protected void removeCommonAdapters(List adapters, List results)(Code)
Prunes from the list of adapters type names that are in the class search order of every class in results.
Parameters:
  adapters -
Parameters:
  results -
since:
   3.1



removeExtension
public void removeExtension(IExtension source, Object[] objects)(Code)



unregisterAllContributors
public void unregisterAllContributors()(Code)
Unregister all contributors.



unregisterContributor
public void unregisterContributor(IObjectContributor contributor, String targetType)(Code)
Unregister a contributor from the target type.
Parameters:
  contributor - the contributor
Parameters:
  targetType - the target type



unregisterContributors
public void unregisterContributors(String targetType)(Code)
Unregister all contributors for the target type.
Parameters:
  targetType - the target type



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.