Bug 552024

Summary: The registrations of the TemplateVariableResolvers locate in different places
Product: [Eclipse Project] JDT Reporter: Sheng Chen <sheche>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 4.14   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard: stalebug

Description Sheng Chen CLA 2019-10-11 03:14:32 EDT
Hi team,

I have a question regarding to the TemplateVariableResolver registrations.

I noticed that the registrations of the TemplateVariableResolver are in different places.

Take an example of the resolvers for JavaContextType:

- Some are added in code implementation: https://github.com/eclipse/eclipse.jdt.ui/blob/c25e5a83e3a015ddf6bfbef854ccc96a816cf267/org.eclipse.jdt.ui/core%20extension/org/eclipse/jdt/internal/corext/template/java/AbstractJavaContextType.java#L328-L361

- Some are added in the plugin.xml: https://github.com/eclipse/eclipse.jdt.ui/blob/cf6c42522ee5a5ea21a34fcfdecf3504d4750a04/org.eclipse.jdt.ui/plugin.xml#L5607-L5699

Is there any reason for these two different kinds of registration? Is it possible to centralize the registration, like adding all the resolvers in Java code.

Thanks.
Comment 1 Eclipse Genie CLA 2021-10-01 11:38:10 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 2 Eclipse Genie CLA 2023-09-23 11:14:11 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.