« April 21, 2008 | Main | May 7, 2008 »

April 22, 2008 Archives

April 22, 2008

Reusing code snippets in JDeveloper

Here is one simple but useful thing that I've been too lazy to make use of, and had overlooked.


JDeveloper's component palette has a page named "Code Snippets". You could actually add frequently re-used code snippets and save them into the "code snippets" section.



Once you click on "Add component", you can give the snippet a name, for e.g. "Assign WS-Addressing Headers" and copy the snippet from your source code  to the given text area.


You can now re-use the code snippet by dragging and dropping the component from the code snippet palette onto the source view of any file that you open in JDeveloper.


Similarly, you can also add your own Pages to the Component palette, to capture Snippets for diferent cateogies of code [for instnace, BPEL,XML, XSD, XSLT etc].



Now you can specify the Page Name and specify the type  - "snippet", "java" etc.


 


 



 


Now you can add new code snippets to the new Palette Page that you created.


 

Viewing Audits for Stale instances

Wondering what to do if you wished to view the audit trail for stale instances?


Well, you could make use of the View Raw XML feature in the BPEL Console.


 


 

About April 2008

This page contains all entries posted to Ramkumar Menon's Blog in April 2008. They are listed from oldest to newest.

April 21, 2008 is the previous archive.

May 7, 2008 is the next archive.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle