Externalize Strings Wizard... any help using some of this functionality? [message #86236] |
Mon, 18 August 2003 20:20 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 #86251 is a reply to message #86236] |
Mon, 18 August 2003 20:58 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: richkulp.NOSPAM.us.ibm.com
Actually you don't need to. In Eclipse 2.1 there is a java compiler
option which says flag all of the non-externalized strings. This will
then put the entries into the tasks view of the classes that have this.
Go to Window->Preferences->Java->Compiler->"Problems Page" Second from
the bottom is the "Usage of non-externalized strings". Turn this on to
either error or warning.
Rich
|
|
|
Re: Externalize Strings Wizard... any help using some of this functionality? [message #86328 is a reply to message #86236] |
Tue, 19 August 2003 07:40 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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.02933 seconds