Programmatically formatting javadoc comments [message #186748] |
Tue, 23 November 2004 03:51 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.45586 seconds