I want to add gedit to the the image. But i am not able to find the dependencies of gedit package. How to find the dependencies (DEPENDS) in yocto.
You find the dependencies by reading the build documentation and the build system scripts (in this case probably configure.ac) of the software in question, and then trial and error.
You could also use Openembedded Metadata Index to find an existing recipe and use or update that: http://cgit.openembedded.org/cgit.cgi/meta-openembedded/tree/meta-gnome/recipes-gnome/gedit/gedit_2.30.4.bb