File -> New -> Program Window -> ...

Aviga

Member²
Hello,

I created some templates of functions, procedures, package specification and bodies, etc.

I firstly put them into a new Template directory. They work fine from the Templates browser.

However, I now wish to get my templates when I do a "File -> New -> Program Window".

Though I renamed the old "Program Unit" directory and created a new directory of the same name under my templates directory (defined in the preferences), I don't access to my new templates but to the default templates.

Could it be because a didn't create exactly the same list of template files? For example, since we separate package spec. and package bodies, we don't need a template for a whole package file.

(I also tried to change my local Template\Program Unit directory but this didn't work either.)

Thanks in advance.

Best regards,
 
I've deleted the supplied templates and inserted my own for the Program units, so you don't have to have the same template names. The folder seems to be the important piece.

I think if you rename the folder from within PL/SQL Deloper, it will know to use the folder with the new name.

So, just plop your templates in the folder that PL/SQL Developer is using ("Program units" or whatever you renamed it) and it should work.

If you want to copy the folder to a different name, try doing it outside of PL/SQL Developer with Windows Explorer or something and I bet it would work OK.

Mike
 
Thank you, my mistake was to name the folder "Program Units" with a capital 'u'.

It works now.

Cheers,

Avigael
 
Back
Top