Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Code Formatter issues with xdoclet
Code Formatter issues with xdoclet [message #264762] Fri, 30 July 2004 18:02 Go to next message
David JH is currently offline David JHFriend
Messages: 6
Registered: July 2009
Junior Member
When using Eclipse 3.0 I find that the code formatter reformats
xdoclet attributes. Specifically it does not identify them as
javadocs and so formats them as if they were part of a sentence,
putting many on one line.

This causes xdoclet to incorrectly parse some xdoclet attributes,
specifically with regard to entity beans. For example:

/**
* @ejb.pk-field
* @ejb.persistent-field
* @ejb.interface-method
*/

public abstract Integer getSomeId();

becomes reformatted to:

/**
* @ejb.pk-field @ejb.persistent-field @ejb.interface-method
*/
public abstract Integer getSomeId();

which causes xdoclet to generate faulty value-objects.

Does anybody know of a way to configure the code formatter OTHER THAN
turning off formatting for coments that would prevent this from
happening?

thanks in advance
-djh
Re: Code Formatter issues with xdoclet [message #265023 is a reply to message #264762] Mon, 02 August 2004 09:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chabert.fimasys.fr

Hi David,

I guess turning off formatting for javadoc comment is the only
workaround. You can also use find/replace to rebuild correctly your tags.

Check this bug for more info:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=68577

Sylvain


David J. Hamilton wrote:
> When using Eclipse 3.0 I find that the code formatter reformats
> xdoclet attributes. Specifically it does not identify them as
> javadocs and so formats them as if they were part of a sentence,
> putting many on one line.
>
> This causes xdoclet to incorrectly parse some xdoclet attributes,
> specifically with regard to entity beans. For example:
>
> /**
> * @ejb.pk-field
> * @ejb.persistent-field
> * @ejb.interface-method
> */
>
> public abstract Integer getSomeId();
>
> becomes reformatted to:
>
> /**
> * @ejb.pk-field @ejb.persistent-field @ejb.interface-method
> */
> public abstract Integer getSomeId();
>
> which causes xdoclet to generate faulty value-objects.
>
> Does anybody know of a way to configure the code formatter OTHER THAN
> turning off formatting for coments that would prevent this from
> happening?
>
> thanks in advance
> -djh
Re: Code Formatter issues with xdoclet [message #265075 is a reply to message #265023] Mon, 02 August 2004 16:50 Go to previous message
David JH is currently offline David JHFriend
Messages: 6
Registered: July 2009
Junior Member
Thanks Sylvain!

The maintenance release formats the code without breaking xdoclet. Much
appreciated.

--djh


Sylvain Chabert wrote:

> Hi David,
>
> I guess turning off formatting for javadoc comment is the only
> workaround. You can also use find/replace to rebuild correctly your tags.
>
> Check this bug for more info:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=68577
>
> Sylvain
>
>
> David J. Hamilton wrote:
>
>> When using Eclipse 3.0 I find that the code formatter reformats
>> xdoclet attributes. Specifically it does not identify them as
>> javadocs and so formats them as if they were part of a sentence,
>> putting many on one line.
>>
>> This causes xdoclet to incorrectly parse some xdoclet attributes,
>> specifically with regard to entity beans. For example:
>>
>> /**
>> * @ejb.pk-field
>> * @ejb.persistent-field
>> * @ejb.interface-method
>> */
>>
>> public abstract Integer getSomeId();
>>
>> becomes reformatted to:
>>
>> /**
>> * @ejb.pk-field @ejb.persistent-field @ejb.interface-method
>> */
>> public abstract Integer getSomeId();
>>
>> which causes xdoclet to generate faulty value-objects.
>>
>> Does anybody know of a way to configure the code formatter OTHER THAN
>> turning off formatting for coments that would prevent this from
>> happening?
>>
>> thanks in advance
>> -djh
Previous Topic:getWorkspace() gives a "Unhandled event loop exception" ?
Next Topic:PLEASE!!!! Editor file extensions
Goto Forum:
  


Current Time: Thu Jul 25 20:22:47 GMT 2024

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

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

Back to the top