title: AST for current selected code in eclipse editor?
body: <p>I need to get the AST for the current selection in the java editor fo eclipse.
  Basically I want to convert the selected java code in to some other form(maybe some other language or XML etc..). So I guess, I need to get the AST for the selection.
  Currently I am able to get the selection as simple text. Is there any way out for such problem?
  Thanks already!!</p>