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

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
 
Yes, my master! Here is the tiny ad you asked for:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic