I have used Eclipse JDT AST in my eclipse plugin for the following reason:
- CodeModel is not as powerful as AST. CodeModel does not have a lot of existing java constructs where AST keeps upgrading and it currently supports jdk 1.7
- CodeModel does not have a parser. It cannot read existing java files and edit the existing code.
- AST has great documentation whereas CodeModel has little or no documentation.