Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

27. May 2012, 01:39:01 am
Xith3D CommunityGeneral CategoryGeneral Discussion (Moderators: Marvin Fröhlich, 'n ddrylliog)Eclipse's everyday tricks
Pages: [1]
Print
Author Topic: Eclipse's everyday tricks  (Read 1540 times)
BrazilianBoy
Becoming dependent
**
Offline Offline

Posts: 208


l_p_camargo@hotmail.com
View Profile Email
« on: 11. October 2007, 11:22:58 pm »

Hi guys Smiley

Can somebody help me to make a general text replace on my sourcecude?

Thanks in advance.
Logged

Getting my hands dirty Smiley
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #1 on: 11. October 2007, 11:30:19 pm »

Go to Search -> File...

Type in your find phrase in the "Containing Text" field.

Hit the "Replace..." button.

Wait.

Type in what to replace in the "With:" field.

Hit "Replace", "Replace All In File", or "Replace All"

Voila!  (Ok, Ok, I don't speak French... Smiley).
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
hawkwind
Getting respectable
***
Offline Offline

Posts: 363



View Profile Email
« Reply #2 on: 12. October 2007, 01:24:13 am »

If you are changing source code?? method names or what not, then use the refactor->rename instead of general text replacement.  Eclipse will decide and make all appropriate changes for you
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #3 on: 12. October 2007, 10:24:28 am »

If you are changing source code?? method names or what not, then use the refactor->rename instead of general text replacement.  Eclipse will decide and make all appropriate changes for you

This is absolutely right. But I guess, he wants to make the necessary changes in his code, that the latest Xith API changes require. And this can only be done through regular text replace as described above (or reflection replay, for which he would need my reflection records, (if I had)).

Marvin
Logged
BrazilianBoy
Becoming dependent
**
Offline Offline

Posts: 208


l_p_camargo@hotmail.com
View Profile Email
« Reply #4 on: 16. October 2007, 02:52:33 pm »

I guess, he wants to make the necessary changes in his code, that the latest Xith API changes require. And this can only be done through regular text replace as described above.

That's it Smiley

Marvin, did you do any modifications to ResourceLocator in the last weeks?

I used to create a ResourceLocator using a "res" folder as the basepath, with only onbe String argument, but it isn't possible anymore. Now, how can I create such ResourceLocator? The res folder is located at my project's root folder.


Lucas.
Logged

Getting my hands dirty Smiley
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #5 on: 16. October 2007, 04:41:04 pm »

Marvin, did you do any modifications to ResourceLocator in the last weeks?

I used to create a ResourceLocator using a "res" folder as the basepath, with only onbe String argument, but it isn't possible anymore. Now, how can I create such ResourceLocator? The res folder is located at my project's root folder.

I made the String constructor private, because it was an accident, that it was public. The way to create ResourceLocator instances should always be through the static create() method or through the URL constructor.

Marvin
Logged
BrazilianBoy
Becoming dependent
**
Offline Offline

Posts: 208


l_p_camargo@hotmail.com
View Profile Email
« Reply #6 on: 16. October 2007, 07:42:13 pm »

Okay. Everything is running fine Smiley
Logged

Getting my hands dirty Smiley
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic