IntelliJ Community . JavaDocEditorPlugin

 
JavaDocEditorPlugin 

HOME INDEX SEARCH CHANGES GO  

JavaDocEditorPlugin

What is it?

A JavaDoc viewer, editor and formatter.

This plugin was inspired by the same dialog in VisualSlickEdit which I missed a lot and by my desire to write some plugin for Idea smile

WARNING warning.gif

Current Features

  • Shows and edits javadoc for classes, fields and methods in gui
  • Automatically picks up parameters, return and exception info and merges it with existing javadoc if there is a conflict or mismatch
  • Converts regular and line comments into javadoc
  • Does not format text between <pre></pre> tags
  • Generates see also tags for methods
  • Formats javadocs using the following settings:
    • (do not) align parameter comments to longest parameter name (min and max)
    • (do not) align exception comments to longest exception name (min and max)
    • (do not) add blank line after all @param tags
    • (do not) add blank line after @return
    • (do not) add blank line after all @throws tags
    • (do not) add blank line after description
    • (do not) add blank line after the whole javadoc
    • keep/remove non-standard tags
    • keep/remove empty lines
    • (do not) add <p/> at empty lines
    • generate @throws, not @exception
    • (do not) generate @param with empty description
    • (do not) generate @return with empty description
    • (do not) generate @throws with empty description
    • wraps text at specified column

Change history

  • 1.0 Initial version
  • 1.1 Added text wrapping (thanks to Erwin Tratar) and <pre> tag awareness.
  • 1.2 Added generation of @see tags for methods
  • 1.3 Added patterns for filtering methods (@see tag) and corresponding settings GUI
  • 1.4 Updated to work with Aurora

Using

By default it maps itself to F11. So unless you redefined this mapping just press F11 when you are on or near a method, a field or a class. The dialog will appear where you can view and edit javadoc.

You can navigate through all the fields using Tab and Shift-Tab. Pressing Tab (or Shift-Tab) in a parameter area will change it to the next (previous) parameter.

With Alt-D, Alt-I and Alt-S you can switch beetween Description, Info and Serial panels.

Using Alt-Up and Alt-Down you can change currently editing member or a class.

Pressing F2 saves all the changes and closes the dialog. Escape exits without applying the changes.

Pressing F1 will show a small help window with all these shortcuts.

TODO

  • Implement "Serial" tags and panels
  • Provide preview functionality (mostly depends on whether JetBrains guys open the corresponding API or not)
  • Provide better editing (highlighting?, code completion?)

Comments

Plugin installation

As usual just download the plugin jar file (see below) and place it in your IntelliJ/plugins directory, then restart Idea. Make sure you download the right version! There are basically two versions: one for Aurora (tested on build 816) and another for Ariadna.

-- DmitrySkavish - 23 May 2003

IntelliJPluginWebForm
IntelliJPluginName: JavaDocEditorPlugin
IntelliJPluginVersion: 1.3
IntelliJPluginVendor: DmitrySkavish
IntelliJPluginBinary: http://www.intellij.org/twiki/pub/Main/JavaDocEditorPlugin/JavaDocEditorPlugin.jar
IntelliJPluginSource: http://www.intellij.org/twiki/pub/Main/JavaDocEditorPlugin/JavaDocEditorPlugin-src.zip
IntelliJPluginClassification:
TopicClassification: IntelliJPluginPackage
TopicShortDescription: JavaDoc viewer, editor and formatter.
TestedOnOS: OsWinNT, OsWin2K
ShouldRunOnOS:

Attachment: sort Action: Size: Date: Who: Comment:
JavaDocEditorPlugin.jar action 73699 14 Dec 2002 - 05:54 DmitrySkavish JavaDocEditorPlugin v1.3 for Ariadna
JavaDocEditorPlugin-src.zip action 50607 14 Dec 2002 - 05:52 DmitrySkavish JavaDocEditorPlugin sources v1.3 for Ariadna
JavaDocEditorPlugin-Aurora.jar action 82876 23 May 2003 - 20:11 DmitrySkavish JavaDocEditorPlugin v1.4 for Aurora

e d i t a t t a c h r e f - b y d i f f s m o r e
Have ideas, requests, problems regarding this site? Send feedback.
Copyright © 2000-2003 by the contributing authors. All materials at intellij.org are the property of the contributing authors.