File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Factoring out strings

 
sony vijay
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to factor out strings in my java code. I am using the Eclipse SDK (Galileo) 3.5.2 Version. I tried using the "Externalize Strings" widget of Eclipse. But, I am not getting the expected results.


Before Externalizing:


After Externalizing:


I see the comments (shown in red) at the end of lines of each string which is not expected. I referred to this link : http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-wizard-externalize-strings.htm

I don't see the field "Use Eclipse's string externalization mechanism" in my Eclipse widget. I am guessing this is the problem. Is that so? In that case I need to add "org.eclipse.osgi.util.NLS class." to my project build path I guess. But, I am not sure how to do this. can someone help me with this?

Thanks,
Sony
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not familiar with that function of Eclipse but I think that this would be very helpful.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic