Fake File Template for JDeveloper

There were a couple of threads on OTN where people asked whether they can have a generic default structure for a java file when JDeveloper creates it. Usually this is in order to add some header/footer type of structure/comment to the start and end of the file, for example to include file info and copy right.

Right now JDeveloper doesn't have a file template concept (it's on our to-do list for a future version), but a quick way to achieve a similar result is to create a code template that can be used with the surround with option in the code editor to enclose your file with the code you want.
This is leveraging the new capabilities of the code template mechanism in JDeveloper 11g.

Here is a short demo showing how to do this:

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today