Bug 99887 - [nls tooling] Handle concatenated strings with arguments
Summary: [nls tooling] Handle concatenated strings with arguments
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-14 01:04 EDT by Uwe Voigt CLA
Modified: 2005-06-14 03:51 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Voigt CLA 2005-06-14 01:04:15 EDT
It would be great if the externalize strings refactoring could detect strings like:

"some text " + argument + " other text " + nextArgument

and modify it to an expression:

MessageFormat.format(Messages.getString("key", new Object[] { argument,
nextArgument}));

This was harder before Java 1.5 when autoboxing was not available
Comment 1 Dani Megert CLA 2005-06-14 03:51:33 EDT
This should be handled by
- Externalize String wizard
- NON-NLS quick fix