Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Refactor Externalized Strings(Looking for a best practice)
Refactor Externalized Strings [message #553984] Thu, 19 August 2010 15:04 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: August 2010
Junior Member
I have been using Eclipse for over three years now and I am very happy with it, except for one problem.

Perhaps there is something I'm overlooking.

Ok. When it comes to refactoring and moving classes around I find that externalized strings are the bane of my existence!

Invariably the list of strings in the property files are not moved and trying to find the right ones become a tedious chore.

So my number one question to you kind souls:

1) Is there a way to reverse the process and put externalized strings back into the source?

I would do this before I start shaking up the world with refactoring.


My kind regards for your time

-Dennis
Re: Refactor Externalized Strings [message #554101 is a reply to message #553984] Fri, 20 August 2010 06:47 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
pinkdaisy@safetymail.info wrote:
> I have been using Eclipse for over three years now and I am very happy
> with it, except for one problem.
> Perhaps there is something I'm overlooking.
>
> Ok. When it comes to refactoring and moving classes around I find that
> externalized strings are the bane of my existence!
>
> Invariably the list of strings in the property files are not moved and
> trying to find the right ones become a tedious chore.
> So my number one question to you kind souls:
>
> 1) Is there a way to reverse the process and put externalized strings
> back into the source?
Yep, there is, but you have to do it one by one:
1. select the file
2. Source > Externalize Strings...
3. in the dialog, make sure that the filter for ignored and externalized
entries is off
4. select all keys
5. click 'Internalize'
6. click 'Next'
7. click 'Finish'

Dani
>
> I would do this before I start shaking up the world with refactoring.
>
>
> My kind regards for your time
>
> -Dennis
Re: Refactor Externalized Strings [message #555678 is a reply to message #554101] Fri, 27 August 2010 15:15 Go to previous message
No real name is currently offline No real nameFriend
Messages: 2
Registered: August 2010
Junior Member
Thank you.

While it would be nice if there was a more sweeping way of doing this, this certainly saves time and errors.

Thanks again.

-Dennis
Previous Topic:Missing "Remote Java Application"
Next Topic:empty IBinding for an entity *declaration* ?!?! (Batch JDT)
Goto Forum:
  


Current Time: Tue Apr 23 06:27:29 GMT 2024

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

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

Back to the top