Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Programmatically formatting javadoc comments
Programmatically formatting javadoc comments [message #186748] Tue, 23 November 2004 03:51
Eclipse UserFriend
Originally posted by: farrell.farthing.extern.hvbsystems.c0m

Hi.

In Eclipse 3.0, the CodeFormatter is refusing to format the Javadoc
comments.
If I select the same block of in the editor, and manually format it, it
formates fine. I've looked through the available options in
JavaCore.getDefaultOptions(), but can't seem to find any way of turning on
javadoc comment formatting.

<code snippet>
CodeFormatter objFormatter =
ToolFactory.createCodeFormatter(JavaCore.getOptions());
TextEdit objEdit = objFormatter.format(CodeFormatter.K_COMPILATION_UNIT,
strSource, objDoc.getStartPosition(),
strSource.length()- objDoc.getStartPosition(), 0, null);

if (objEdit != null)
{
objEdit.apply(objSourceDoc);
}

Thanks,

Farrell.
Previous Topic:how to process XML in Eclipse
Next Topic:create ICompilationUnit working copy without corresponding resource ?
Goto Forum:
  


Current Time: Wed Jul 23 03:57:13 EDT 2025

Powered by FUDForum. Page generated in 0.45586 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top