Externalize Strings Wizard... any help using some of this functionality? [message #86236] |
Mon, 18 August 2003 16:20  |
Eclipse User |
|
|
|
Originally posted by: gino.--no-spam--filicetti.net
Hey guys,
I've been tasked with automating the process of validating that our entire
code base has had its strings externalized... this means, I need to figure
out if each of our .java files was run through the Externalize Strings
Wizard and make sure that each string was tagged with a // $NON-NLS-1$ type
comment.
Although I could probably whip out a pretty painless perl script to whip
through all the files and do this text search, I figured I would try to
re-use the existing code in the Externalize Strings Wizard to accomplish
this task. Obviously, this wizard can figure out whether all the string in a
file have been externalized or not.
I'd like a little help on getting started though... where should I begin my
search, how simple or convoluted is the Externalize Strings wizard's code?
Any other tips?
Any help is appreciated..... thank you.
G
|
|
|
|
Re: Externalize Strings Wizard... any help using some of this functionality? [message #86328 is a reply to message #86236] |
Tue, 19 August 2003 03:40  |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
G. Filicetti wrote:
>Hey guys,
>
>I've been tasked with automating the process of validating that our entire
>code base has had its strings externalized... this means, I need to figure
>out if each of our .java files was run through the Externalize Strings
>Wizard and make sure that each string was tagged with a // $NON-NLS-1$ type
>comment.
>
Select some Java elements (e.g. your Java projects), then Source > Find
Strings to Externalize...
To get the code for this start with
org.eclipse.jdt.ui.FindStringsToExternalizeAction
HTH
Dani
|
|
|
Powered by
FUDForum. Page generated in 0.02829 seconds