I need to add to the jEdit core a "Task" that is always adding Javadoc comments to all classes, methods and attributes in an x second interval. The amount of seconds is set in an popup opened from a menu entry that needs to be added as well.
I know that I need to find the main text buffer, but I don't know which one it is in the Javadoc of jEdit. And the "Task" should just be added if the "Mode" is on Java.
And how do I add a menu entry?