Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370692

Summary: Extdoc: Provider for 'Static Hooks' that return a specific type
Product: z_Archived Reporter: Johannes Lerch <lerch>
Component: RecommendersAssignee: Project inbox <recommenders-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P5 CC: kutschke.michael, sewe
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Johannes Lerch CLA 2012-02-06 04:52:19 EST
Motivated by your provider implementation that lists all 'Static Hooks' in a selected JavaElement (see https://twitter.com/#!/ide20/status/166435798202318848/photo/1/large) I want to propose a slightly different one:

Instead of listing all static methods in a type it would be nice to list all static methods that return a specific/selected type.

Example:
Assume IJavaElement is selected, then the provider should list the following:

org.eclipse.jdt.core.IJavaElement:
   org.eclipse.jdt.core.JavaCore.create(String)
   org.eclipse.jdt.core.JavaCore.create(String, WorkingCopyOwner)
   org.eclipse.jdt.core.JavaCore.create(IFile)
   org.eclipse.jdt.core.JavaCore.create(IFolder)
   ...

The search can be restricted to the current classpath of the selection or to the whole workspace. Potentially, both can make sense.
Comment 1 Marcel Bruch CLA 2012-08-19 07:09:57 EDT
the extdoc plugin contains such a static hooks provider now.
Comment 2 Marcel Bruch CLA 2012-08-19 07:10:46 EDT
sorry. wrong ticket. This is still not implemented.
Comment 3 Marcel Bruch CLA 2013-04-10 02:34:24 EDT
May be an interesting feature for 2.0. Scheduling this for discussion.
Comment 4 Andreas Sewe CLA 2014-07-21 02:58:45 EDT
Unless we get an external contribution, I don't see this in 2.2.0.