• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

New file template in eclipse

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would like to include new file templates in eclipse, so that when a developer wants to create a new file, he/she can select from several Java templates (e.g. one for DAOs, one for DTOs, ...)
Is that possible?
 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Johan Nagels:
I would like to include new file templates in eclipse, so that when a developer wants to create a new file, he/she can select from several Java templates (e.g. one for DAOs, one for DTOs, ...)
Is that possible?



If you are looking at adding a new custom wizard under the java category, yes sir it is possible.

Your parent category for the new wizard should read.

parentCategory="org.eclipse.jdt.ui.java"

or you may want to create a separate parent category under java for your templates. For e.g. look at the junit plugin

For more info on how to create new wizards look at

http://help.eclipse.org/help21/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/dialogs_wizards_newWizards.htm

-Rajagopal
 
Happily living in the valley of the dried frogs with a few tiny ads.
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