| Summary: | Warnings should be given for unused Strings in .properties [nls] [4] | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Aaron Luchko <aaron> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | thatnitind |
| Version: | 3.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Aaron Luchko
We plan on doing this for plugin.properties as it is the only properties file in the PDE domain. If you are referring to arbitrary *.properties files then JDT is the place to enter such a feature request. *** Bug 83026 has been marked as a duplicate of this bug. *** Moving to JDT Searches for Duplicate Strings would be useful as well. Doing this all the time can be time consuming since it requires inspecting all files using a certain message bundle. The compiler doesn't warn about unused non private methods either since this would require a reference search as well. The functionality you are asking for exists via search. Open Search dialog-> NLS Keys (you may need to enable this first via the custimize dialog). Enter your accessor class and the bundle. The search will inform you about missing and unused keys. For 3.1 no action is planned to add this as a warning to the properties editor. I haven't been able to find Open Search dialog-> NLS Keys so I can't really comment on that but I don't think this is a comparable situation to unused non private methods since unused non-private methods may still be called by other projects (ie libraries) so are still quite valid to have in a class. I assume this search method will inform me of cases where the same identifier is used twice? i e Foo.this_string Bar.that_string Foo.this_string The function finds unused keys and duplicate keys. To enable this search page, open the search dialog, press Custimize button, check "NLS Keys". This gives you a new search page. As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you. |