Adjust the key to use for documentation depending on file type.
fixed some bugs in the formatting when using eclim-java-implement
fixed an annoying bug in XML completion when using yasnippet.