However, with this code in its init() function, ArcMap hangs and never opens any Document. ArcMap did not hang when I tried the newDocument event instead, however a Document that is closed and re-opened will not fire the the newDocument Event.
So, if someone could answer any of my questions here, that would be nice: 1) Are we supposed to fire a super.openDocument(e); after having done our own logic? I tried that, but it did not seem to change anything. 2) Could it be, that I should rather listen to Events in an Extension than in this Tool? It might be, that Extensions are loaded first.. 3) Any other suggestions?