Externalize strings - insertion position [message #9650] |
Tue, 01 July 2008 17:00 |
Eclipse User |
|
|
|
Originally posted by: bsv.datatel.com
In my project, we started out with a bunch of handwritten NLS classes
with corresponding properties files. Nicely grouped together for
readability. E.g.,
public class Messages extends NLS {
// Group1
public static String Car;
public static String Truck;
// Group2
public static String Apple;
public static String Orange;
}
Then I started to use the Externalize Strings wizard to add new items.
It works fine, except that the positions it picks for the new entries
seem to be completely random. (Note this is a contrived example)
public class Messages extends NLS {
// Group1
public static String Car;
public static String Banana; <--- Why here??
public static String Truck;
// Group2
public static String Apple;
public static String Orange;
}
Is there a standard, best practices sort order (A-Z?) for NLS classes
and properties files? Something the wizard might be expecting?
If the order is not important, then an enhancement request might be to
allow the user to pick where in the target class and associated
properties file the new items might go. I didn't see anything in
Bugzilla like this..
Any thoughts or ideas would be appreciated! Thanks
-Ben
|
|
|
Powered by
FUDForum. Page generated in 0.03454 seconds