This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have David & Dawn Griffiths on-line!
See this thread for details.
Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

How tro attach source file to single class file in WSAD?

 
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am very new to WSAD.I have created Enterprise application project by importing EAR file.Now I want to attach source file to the class file.Please note that I dont want to attach source file to whole jar file containing the class file.I know we can attach source file to jar file by right clicking on jarfile,selecting properties,and then selecting java build path.But I want to attach source file only to single class file in given jar file.How can I do that?

I have spent a day in figuring this out.But couldn't find,feeling wasted lot of time on this.Please help.

Thanks
Veena
 
author & internet detective
Posts: 40797
828
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Veena,
I'm pretty sure you can't attach to one file.

You could refactor to have that one file in a separate Java project including the source though.
 
Veena Pointi
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some one showed me how to attach source file to single class file.But I forgot how they did.Trying to find again...I have only one file with source in my project.I am trying to do for other ....not able to....
 
Veena Pointi
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And also when I right click on classFile of bean of given jar file in EJBmodule,I get only 4 options New,Import,Expot,UMLVisualtions .I don't get properties option where I can get JavaSourceAttachment option.Any help in correcting my settings so that I can attach source file to class file of jarfile in WSAD is greatly appreciated.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic