I'm pretty sure at least most versions of the official IDE were written in Delphi (the IDE--not the compiler, of course). I remember trying to hack plugins into it and it was clearly Delphi code.
Random person on SO seems to agree http://stackoverflow.com/questions/7766753/what-ide-is-the-d...