Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Auto-line-wrapping
Auto-line-wrapping [message #668353] Thu, 05 May 2011 06:44 Go to next message
Eclipse UserFriend
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 11:44 Go to previous message
Eclipse UserFriend
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 Jul 04 00:17:18 EDT 2025

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

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

Back to the top