I want to write a plugin for PHP files, which will do some specific task for me. From my plugin, i want to get the php class/script details and do some manipulation with that.Â

For a java file we do thisÂfinal IWorkingCopyManager manager = JavaUI.getWorkingCopyManager();Âand from the open editor, we get the ICompilationUnit object and from that we get all the methods,fields etc present in that java file.Â