Skip to main content



      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 11:04 Go to next message
Eclipse UserFriend
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 02:47 Go to previous messageGo to next message
Eclipse UserFriend
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 11:15 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 10:41:13 EDT 2025

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

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

Back to the top