Most IDEs have some kind of templating features that will help with this. The exact mechanism will depend on which IDE you're using. For an IDE-independent technique, you could use a macro preprocessor like m4 to generate your Java files.
If you want specific help, you'd need to narrow it down to a specific IDE or environment of interest.
Do it in two passes. Insert a string and then do a global replace on that string to the new string.
Joined: Jul 17, 2008
i am using the eclipse ide
Originally posted by Norm Radder: Do it in two passes. Insert a string and then do a global replace on that string to the new string.
yeah thats what i have been doing but not as smart as a i should be.
Like i should have made the original with the $ sign. because on the global replace i acidently replace things that i shouldnt (like this isnt what is happening but an example say that i needed to replace int and i didnt use case sensitivity in the control f option , and i also used wrap and rather than just chang all the ints to longs, it also changed integers to longegers).
(I haven't tried to compile this, and it's all from memory, so it might contain bugs. It should give you the general idea, though.) [ July 24, 2008: Message edited by: Ilja Preuss ]
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus