Bug 370692 - Extdoc: Provider for 'Static Hooks' that return a specific type
Summary: Extdoc: Provider for 'Static Hooks' that return a specific type
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Recommenders (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2012-02-06 04:52 EST by Johannes Lerch CLA
Modified: 2019-07-24 14:36 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.