Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Auto-line-wrapping
Auto-line-wrapping [message #668353] Thu, 05 May 2011 10:44 Go to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Is there a trick to making auto-line-wrapping work in 2.0M7?

In M5 it seemed to work.
In M6 line wraps were introduced but with inadequate indentation.
In M7 there seems to be no auto-line-wrapping, which is better than M6.

From the documentation it would appear that because many elements in:

let table : Set(Tuple(range : Sequence(Integer), size :
CompanySizeKind)) = Set{Tuple{range = Sequence{0..49}, size =
CompanySizeKind::small}, Tuple{range = Sequence{50..999}, size =
CompanySizeKind::medium}, Tuple{range = Sequence{1000..1000000}, size =
CompanySizeKind::large}} in
table->any(range->includes(employees->size())).size;

had enforced no spaces, the auto-line-wrapper has overlooked some places
where line-breaks could be introduced.

[It would be really good to have Javadoc for the formatter so that
hovering over e.g. setLineWrap will instantly tell you the argument
semantics.]

Regards

Ed Willink
Re: Auto-line-wrapping [message #668435 is a reply to message #668353] Thu, 05 May 2011 15:44 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Ed,

there were some fixes in the formatting engine which may have introduced
the regression since M5. Please provide your formatting config and your
grammar in a bugzilla.

Thanks,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 05.05.11 12:44, schrieb Ed Willink:
> Hi
>
> Is there a trick to making auto-line-wrapping work in 2.0M7?
>
> In M5 it seemed to work.
> In M6 line wraps were introduced but with inadequate indentation.
> In M7 there seems to be no auto-line-wrapping, which is better than M6.
>
> From the documentation it would appear that because many elements in:
>
> let table : Set(Tuple(range : Sequence(Integer), size :
> CompanySizeKind)) = Set{Tuple{range = Sequence{0..49}, size =
> CompanySizeKind::small}, Tuple{range = Sequence{50..999}, size =
> CompanySizeKind::medium}, Tuple{range = Sequence{1000..1000000}, size =
> CompanySizeKind::large}} in
> table->any(range->includes(employees->size())).size;
>
> had enforced no spaces, the auto-line-wrapper has overlooked some places
> where line-breaks could be introduced.
>
> [It would be really good to have Javadoc for the formatter so that
> hovering over e.g. setLineWrap will instantly tell you the argument
> semantics.]
>
> Regards
>
> Ed Willink
Previous Topic:Use xtext model exported as XMI
Next Topic:Code repository of DSLs developed with Xtext
Goto Forum:
  


Current Time: Fri Apr 26 04:31:21 GMT 2024

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

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

Back to the top