Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Advanced Formatting doubts
Advanced Formatting doubts [message #824514] Mon, 19 March 2012 19:09 Go to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

I have a special feature request for my fxgraph file which asks for the
following.

Given I have a file like this:

Test {
Bla { a: 10 }
Bla { a: 10, b: 20 }
}


that the formatter does produce the following:

Test {
Bla { a: 10 }
Bla {
a: 10,
b: 20
}
}


Is this possible?

Tom
Re: Advanced Formatting doubts [message #824706 is a reply to message #824514] Tue, 20 March 2012 00:35 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 2012-19-03 20:09, Tom Schindl wrote:
> Hi,
>
> I have a special feature request for my fxgraph file which asks for the
> following.
>
> Given I have a file like this:
>
> Test {
> Bla { a: 10 }
> Bla { a: 10, b: 20 }
> }
>
>
> that the formatter does produce the following:
>
> Test {
> Bla { a: 10 }
> Bla {
> a: 10,
> b: 20
> }
> }
>
>
> Is this possible?
>
afaik, no, not with the current formatter - it can only make decision
based on grammar - not on length of lists.

You will be able to with the formatter I am working on. It is available
for experimental work / testing if you are interested.

Regards
- henrik
Re: Advanced Formatting doubts [message #824888 is a reply to message #824706] Tue, 20 March 2012 07:31 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi Henrik,

I've deferred the feature for the next release but I'd be very
interested in giveing it a try. Is it going to be released under EPL?

Tom

Am 20.03.12 01:35, schrieb Henrik Lindberg:
> On 2012-19-03 20:09, Tom Schindl wrote:
>> Hi,
>>
>> I have a special feature request for my fxgraph file which asks for the
>> following.
>>
>> Given I have a file like this:
>>
>> Test {
>> Bla { a: 10 }
>> Bla { a: 10, b: 20 }
>> }
>>
>>
>> that the formatter does produce the following:
>>
>> Test {
>> Bla { a: 10 }
>> Bla {
>> a: 10,
>> b: 20
>> }
>> }
>>
>>
>> Is this possible?
>>
> afaik, no, not with the current formatter - it can only make decision
> based on grammar - not on length of lists.
>
> You will be able to with the formatter I am working on. It is available
> for experimental work / testing if you are interested.
>
> Regards
> - henrik
>
>
Re: Advanced Formatting doubts [message #825133 is a reply to message #824888] Tue, 20 March 2012 13:58 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 2012-20-03 8:31, Tom Schindl wrote:
> Hi Henrik,
>
> I've deferred the feature for the next release but I'd be very
> interested in giveing it a try. Is it going to be released under EPL?
>
>
Yes it is already EPL, the plan is to donate it to Xtext. For now it is
included in cloudsmith/geppetto @ github. Once it is stabilized I
imagine breaking it out, renaming some packages etc.

If you or anyone else wants to try things out I am happy to help.

Regards
- henrik
Previous Topic:From IResource to EObject and back
Next Topic:Variables in content assist (code completion)
Goto Forum:
  


Current Time: Fri Apr 26 12:23:50 GMT 2024

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

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

Back to the top