Skip to main content



      Home
Home » Newcomers » Newcomers » Formatter problem with assert.
Formatter problem with assert. [message #120804] Wed, 30 November 2005 04:03 Go to next message
Eclipse UserFriend
Originally posted by: radoslawg.xxxxxxxxxxxx.xxx

Hello,
I have trouble making formatter break the line for me if I use assert
keyword.
Consider such assert statement:

assert childElement.getElementsByTagName( FIELD_NAME ).getLength() == 1
: "XML malformed. No attribute name!";

It is clearly longer that 100 characters (this is my maximum set in
formatter) and I would expect to receive something like this:

assert childElement.getElementsByTagName( FIELD_NAME ).getLength() == 1
: "XML malformed. No attribute name!";

but formatter does nothing. Moreover if I manually break the line
formatter keeps changing it back to whole line.

I haven't found any reference in bugzilla for this issue so I am
considering reporting it but I thought I will ask am I missing something
here? Maybe I can't see relevant setting in formatter's options?

Any help would be appreciated.

Thanks in advanace && cheers,
Radek

P.S. Thunderbird will probably break first assert statement anyway.. But
believe me - it is written in one line. :)
Re: Formatter problem with assert. [message #120807 is a reply to message #120804] Wed, 30 November 2005 04:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: radoslawg.xxxxxxxxxxxx.xxx

Forgot to say: I am running Eclipse 3.1.1 .
Re: Formatter problem with assert. [message #120837 is a reply to message #120804] Wed, 30 November 2005 10:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olivier_thomann.NOca.ibm.comSPAM

Radoslaw Grzanka a écrit :
> Hello,
> I have trouble making formatter break the line for me if I use assert
> keyword.
There is no line break inside assert statement for now.
Open a feature request against JDT/Core.
--
Olivier
Re: Formatter problem with assert. [message #120842 is a reply to message #120837] Wed, 30 November 2005 10:13 Go to previous message
Eclipse UserFriend
Originally posted by: radoslawg.xxxxxxxxxxxx.xxx

Olivier Thomann wrote:
> Radoslaw Grzanka a écrit :
>> Hello,
>> I have trouble making formatter break the line for me if I use
>> assert keyword.
> There is no line break inside assert statement for now.
> Open a feature request against JDT/Core.
> --
> Olivier

Thanks for your reply.

If somebody interested:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=118641

Cheers,
Radek.
Previous Topic:how to define custom url in eclipse
Next Topic:about User Operation is waiting
Goto Forum:
  


Current Time: Fri Sep 19 07:10:28 EDT 2025

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

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

Back to the top