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

Bug 312356

Summary: Enhance localization bundle handling
Product: [WebTools] Java Server Faces Reporter: Vadim Dmitriev <dmgloss>
Component: UIAssignee: Ian Trimble <ian.trimble>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: ccc, raghunathan.srinivasan
Version: unspecified   
Target Milestone: Future   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Proposed functionality
none
icons for content assist none

Description Vadim Dmitriev CLA 2010-05-10 19:45:24 EDT
Build Identifier: I20100429-1549

We have several issues with localization bundles handling by JSF tools (they don't worth separate bugreports). These issues were fixed with minor enhancements:

1. bundle entries provide brief description in content assist. Currently it displays entry value in the default bundle (bundle without locale specified in the file name) and lists locales in which this entry is redefined. Or it lists bundles that doesn't provide entry value if default bundle is absent.
2. bundle variables support hyperlinking. If default bundle is found  it is opened. If not, random bundle with the same base name will be chosen.
If ResourceBundle Editor is installed, it will be used as editor. Otherwise default *.properties editor will be used. Of course this editor selection should be configurable, but it is as it is.
3. loadBundle will contribute bundle variable with entries aggregated from other locale-specific bundles even if default bundle cannot be located

Reproducible: Always
Comment 1 Vadim Dmitriev CLA 2010-05-10 19:46:23 EDT
Created attachment 167845 [details]
Proposed functionality
Comment 2 Vadim Dmitriev CLA 2010-05-10 19:47:34 EDT
Created attachment 167847 [details]
icons for content assist
Comment 3 Raghunathan Srinivasan CLA 2010-05-11 13:27:43 EDT
Thanks for the enhancement and the patch. It is too late to get this in for Helios, but we will target it for the first maintenance release
Comment 4 Raghunathan Srinivasan CLA 2010-10-06 17:13:51 EDT
Please review for 3.3.
Comment 5 Raghunathan Srinivasan CLA 2011-03-15 14:23:16 EDT
Hi Vadim,

Thanks once again for the code contribution. Due to resource constraints, we have to defer this bug to the next main release. However we would like to go through the IP approval process so that we can accept this contribution in the future. For that, please confirm the following:
1.  Confirm you wrote the code,
2.  Confirm you have the rights to donate the code to Eclipse,
3.  Confirm that you are submitting the code for inclusion in future Eclipse
releases under the Eclipse Public License.

Thanks
Raghu