Bug 270943 - [format] CodeFormatter should be improved to handle javadoc annotations better
Summary: [format] CodeFormatter should be improved to handle javadoc annotations better
Status: VERIFIED DUPLICATE of bug 297546
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.6 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-02 06:25 EDT by Hasan Ceylan CLA
Modified: 2010-02-02 04:49 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hasan Ceylan CLA 2009-04-02 06:25:00 EDT
Build ID: 3.5M6

Steps To Reproduce:
formatting the following removes the space between @see tag and the class declaration
	/*
	 * (non-Javadoc)
	 * 
	 * @seeorg.eclipse.xtext.ui.common.editor.outline.impl.
	 * AbstractSemanticModelTransformer
	 * #getChildren(org.eclipse.emf.ecore.EObject)
	 */
	@Override
	@SuppressWarnings("unchecked")
	protected List<EObject> getChildren(EObject semanticNode) {

More information:
Comment 1 Frederic Fusier CLA 2009-04-02 07:59:32 EDT
As I can't any space between the @see tag and the reference after, I guess you put the result after having formatted your source. Could you give us the source before the formatting occurred? Please also attach the formatter profile you use to format the source...

TIA
Comment 2 Hasan Ceylan CLA 2009-04-02 12:53:40 EDT
Hello Frederic,

Yes you are right that this preview is after formatting. 

It is an overridden method with a the standard formatting.

This does not happen all the time. Javadoc is auto-generated with shift-alt-j. But for example formatting org.eclipse.xtext.ui.common.editor.outline.impl.AbstractSemanticModelTransformer#getChildren override produces the result. I had been seeing this for a long time and (couple of years, like maybe since 3.0). Just Don't ask why I reported now. :)

One more thing I cannot click on the method name to navigate in javadocs. But classnames are hover enabled. This would be nice as well for easy navigation. I know that there is always Ctrl-T on method to display method inheritence. But for complicated list of inheritences this takes time. 

Hasan 
Comment 3 Hasan Ceylan CLA 2009-04-04 13:38:48 EDT
Forget about the last paragraph. I opened a new bugzilla for that...

Hasan
Comment 4 Frederic Fusier CLA 2009-06-19 07:25:52 EDT
Hasan,

Information requested in comment 1 are still needed: the source before formatting and the formatter profile you used (may be the default). This will help us to understand the real problem and reproduce it easily...
Comment 5 Hasan Ceylan CLA 2010-01-31 00:04:20 EST
For some reason my email is taken off the CC list.

I am no longer experiencing this with eclipse 3.6M5
Comment 6 Frederic Fusier CLA 2010-02-02 04:48:58 EST
(In reply to comment #5)
> For some reason my email is taken off the CC list.
> 
> I am no longer experiencing this with eclipse 3.6M5

This is because it has been fixed (see duplicate bug 297546)

*** This bug has been marked as a duplicate of bug 297546 ***
Comment 7 Frederic Fusier CLA 2010-02-02 04:49:47 EST
Verified by reporter (see comment 5)