Search code examples
eclipsejavadoc

How do I define a shortcut key in Eclipse to generate ALL javadoc for my project


I generate javadoc for my project often. Doing this in Eclipse requires 6 mouse clicks (Project/Generate Javadoc/Open Project Tree/Unselect Src box/Select Src box/Finish).

Is there a shortcut key that I'm missing? Or a plug-in to make this generation easier?


Solution

  • On the third/last page of the Javadoc Generation wizard/dialog there is the checkbox Save the settings of this Javadoc export as an Ant Script for that.

    The Ant script generated in this way can be launched via right-click Run As > Ant Build. If the Ant script was executed once, you can click on the Run Last Tool icon in the main toolbar to run it again. In addition, in Window > Preferences: General > Keys you can specify a shortcut for Run Last Launched External Tool command.