Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Externalize Strings Wizard... any help using some of this functionality?
Externalize Strings Wizard... any help using some of this functionality? [message #86236] Mon, 18 August 2003 20:20 Go to next message
Eclipse UserFriend
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 messageGo to next message
Eclipse UserFriend
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
Eclipse UserFriend
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
Previous Topic:freebsd 3.0 Eclipse crash running Ant
Next Topic:Comipler Bug: Unnessesary cast to type long to for expression of type int
Goto Forum:
  


Current Time: Sun Jun 30 19:34:53 GMT 2024

Powered by FUDForum. Page generated in 0.02933 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top