Community
Participate
Working Groups
Build F2 1. add JUnit to fresh workspace 2. open SuiteTest in J Editor 3. in the Outline view select method testOneTestCase() 4. select "Add Javadoc Comment" from context menu==> two bugs: 1) There is a line between the method and the Javadoc 2) The selection is wrong
need to investigate
fixed reveal problem > 20020607, reviewed by EG empty line comes from the code formatter move to JCore
Pls investigate
The problem comes from the method: org.eclipse.jdt.internal.corext.codemanipulation.StubUtility.codeFormat: Replace it with the following code and the empty line disappears. [public static String codeFormat(String sourceString, int initialIndentationLevel, String lineDelim) { ICodeFormatter formatter= ToolFactory.createDefaultCodeFormatter(null); return formatter.format(sourceString, initialIndentationLevel, null, lineDelim); }] The code formatter is not loosing anymore the last line delimiter, but this method always adds a line delimiter. Therefore we ended up with an extra blank line. (See bug 12159 for further details about this line delimiter at the end of the formatted source).
Fix available in builds > 20020611 Reviewed by Dirk Bäumer
Verified on F3