• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

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: 41995
911
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.
 
We don't have time for this. We've gotta save the moon! Or check this out:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic