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

Bug 368527

Summary: [search] Allow search for references in workspace to start from multiple selection
Product: [Eclipse Project] JDT Reporter: Robin Rosenberg <robin.rosenberg>
Component: UIAssignee: Sarika Sinha <sarika.sinha>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P5 CC: daniel_megert, markus.kell.r, noopur_gupta
Version: 3.8Flags: daniel_megert: pmc_approved+
Target Milestone: 4.6 M7   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/70532
https://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=3bba7a83ad16733ef89d5eb7a73e3e2e84aacf44
Whiteboard:
Bug Depends on:    
Bug Blocks: 477340    

Description Robin Rosenberg CLA 2012-01-13 05:13:00 EST
I want to for example mark more all constructors in the outline and search
for all of them, but the search menu is only available for a single selection.
Comment 1 Dani Megert CLA 2012-01-13 06:25:16 EST
Until this bug is fixed you might want to use 'Open Call Hierarchy' (Ctrl+Alt+H).


Fixing this would not just mean to allow starting the search but also group the results similar to the Call Hierarchy view.
Comment 2 Markus Keller CLA 2012-01-13 06:34:22 EST
Workaround to search for references to all constructors: Select the enclosing type in the outline, open the Java Search dialog, and then change the "Search For" option to "Constructor".
Comment 4 Noopur Gupta CLA 2016-04-21 06:53:07 EDT
Thanks for the patch, Sarika.

Fixed minor issues like changing 'if' statements to block, changes to conditional expressions and removing extra whitespaces with:

http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=be85879cb90acfcb832c6e18c6f84d556978ee24
Comment 5 Dani Megert CLA 2016-04-22 05:28:36 EDT
(In reply to Noopur Gupta from comment #4)
> Thanks for the patch, Sarika.
> 
> Fixed minor issues like changing 'if' statements to block, changes to
> conditional expressions and removing extra whitespaces with:
> 
> http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=be85879cb90acfcb832c6e18c6f84d556978ee24
> 

For the records: This change added API after the freeze. An API change request should have been sent to the PMC mailing list. Anyway, I looked at the change and since the class is not intended to be subclassed by clients, the change is not problematic. I hereby approve the addition.
Comment 6 Dani Megert CLA 2016-04-22 05:49:26 EDT
(In reply to Dani Megert from comment #5)
> (In reply to Noopur Gupta from comment #4)
> > Thanks for the patch, Sarika.
> > 
> > Fixed minor issues like changing 'if' statements to block, changes to
> > conditional expressions and removing extra whitespaces with:
> > 
> > http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=be85879cb90acfcb832c6e18c6f84d556978ee24
> > 
> 
> For the records: This change added API after the freeze.

Sorry my bad! The API addition *was* sent to the PMC list and approved via bug 477340.