I am developing a multi language editor for C,C++ and Java. In this editor
I want to display the methods,variables and the classes used in the application as a tree structured format as u see in other editors which displays the header files that are included, the classes, the functions etc.. that are involved. The user as and when types the code the tree should get updated. I am maintaining the tree on the leftside of the Editor.

Please do suggest me a solution for how to create this or any source code available.