Hi,
i am trying to add method or variable declarations to org.eclipse.jdt.core.dom.CompilationUnit, but I can't figure out how to achieve that.
If I am using CompilationUnit.types().add(...) the element is added as a sibling, not as a child element.
I've really searched a lot now, but I don't believe it's such a big deal.
Thanks for your answers!
heinrich