Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 564624 - [15] Match location selection dialog should have "permitted type declarations"
Summary: [15] Match location selection dialog should have "permitted type declarations"
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.17   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: BETA J15   Edit
Assignee: Noopur Gupta CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 564049
Blocks: 561403
  Show dependency tree
 
Reported: 2020-06-24 11:26 EDT by Vikas Chandra CLA
Modified: 2020-10-08 07:05 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vikas Chandra CLA 2020-06-24 11:26:17 EDT
1. Click on Search->Java
2.In "Limit to" section, click on "0 of 15 selected"
3.  Match location selection dialog comes up

It should have a checkbox for permit types with when selected should search for permit types.
Comment 1 Manoj N Palat CLA 2020-06-25 09:59:42 EDT
@Noopur: With the latest changes in spec, the permitted types are now referred to as "Permitted Direct Subclasses" - so it maybe appropriate to have the ui text reflecting the above for now (or until the next preview if it changes).
Comment 2 Noopur Gupta CLA 2020-06-25 10:10:21 EDT
(In reply to Manoj Palat from comment #1)
> "Permitted Direct Subclasses" 

We can have permitted records and interfaces also. Is the spec still going to use the term "subclasses"? 

I was planning to use "Permitted type declarations" similar to the existing option of "Super type declarations". 

If "direct" needs to be added, we can have it as "Permitted direct type declarations".
Comment 3 Noopur Gupta CLA 2020-06-25 10:13:07 EDT
Or, "Permitted direct subtype declarations".
Comment 4 Noopur Gupta CLA 2020-06-26 03:30:56 EDT
Can you specify if the API in bug 564049 searches only for the directly permitted subtypes or the indirect ones as well?
Comment 5 Vikas Chandra CLA 2020-06-26 04:32:26 EDT
(In reply to Noopur Gupta from comment #4)
> Can you specify if the API in bug 564049 searches only for the directly
> permitted subtypes or the indirect ones as well?

All the permit types present in typeDecl.permittedTypes. 

@Manoj does typeDecl.permittedTypes contain direct types or both indirect/direct types.
Comment 6 Manoj N Palat CLA 2020-07-05 23:27:20 EDT
(In reply to Noopur Gupta from comment #2)
> (In reply to Manoj Palat from comment #1)
> > "Permitted Direct Subclasses" 
> 
> We can have permitted records and interfaces also. Is the spec still going
> to use the term "subclasses"? 

Yes, we can have interfaces also; No, We cannot have records.

> I was planning to use "Permitted type declarations" similar to the existing
> option of "Super type declarations". 

Maybe at this point, you can leave it as it is. The bug 564558 addresses the new terminology adjustment in core. Once we start on that we can have a corresponding ui bug to finalize the terms in tandem.
Comment 7 Manoj N Palat CLA 2020-07-05 23:29:23 EDT
(In reply to Vikas Chandra from comment #5)
> @Manoj does typeDecl.permittedTypes contain direct types or both
> indirect/direct types.

permitted clause deals with only one level and hence all the types will be direct.
Comment 8 Noopur Gupta CLA 2020-07-06 07:43:09 EDT
It's still not clear from the previous comments why "direct", "sub" and "classes" words should be used in the display text.

I will go ahead with "Permitted type declarations" as planned earlier.

Please open a new bug in UI with the proposed text when the terminology adjustments are finalized in Core.
Comment 9 Manoj N Palat CLA 2020-07-06 08:33:38 EDT
(In reply to Noopur Gupta from comment #8)
> 
> Please open a new bug in UI with the proposed text when the terminology
> adjustments are finalized in Core.

With you on that as mentioned in comment 6 - "we can have a corresponding ui bug to finalize the terms in tandem"
Comment 10 Eclipse Genie CLA 2020-07-20 03:40:09 EDT
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/166492
Comment 11 Noopur Gupta CLA 2020-07-22 05:10:30 EDT
(In reply to Eclipse Genie from comment #10)
> New Gerrit change created:
> https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/166492

Build proceeded after a new Y-build. Test failures are not related and are due to bug 565192.
Comment 13 Vikas Chandra CLA 2020-07-29 10:44:14 EDT
While testing for java search and content assist in the new Y build, I found and fixed Bug 565653.
Comment 14 Noopur Gupta CLA 2020-07-29 11:14:29 EDT
(In reply to Vikas Chandra from comment #13)
> While testing for java search and content assist in the new Y build, I found
> and fixed Bug 565653.

Thanks, Vikas.
Comment 15 Eclipse Genie CLA 2020-10-08 07:04:55 EDT
New Gerrit change created: https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/170503