Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Formatting-Indent, documentation out of date
Formatting-Indent, documentation out of date [message #760162] Thu, 01 December 2011 13:57 Go to next message
Federico Sellanes is currently offline Federico SellanesFriend
Messages: 71
Registered: November 2011
Member
Im trying to write my indent class but the documentation of xtext 2.1-Formatting (pretty printing) is out of date or at least is not working properly.

c.setLinewrap(2).after((MyDSLGrammar)getGrammarAccess.getLineAccess().getSemicolonKeyword_1());


There is no method "getLineAccess".

Somebody know how i can get the semicolon in xtext 2.1 ?

Thanks in advance.

[Updated on: Thu, 01 December 2011 14:37]

Report message to a moderator

Re: Formatting-Indent, documentation out of date [message #760207 is a reply to message #760162] Thu, 01 December 2011 15:43 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

Line is the name of a rule so wich is the rule that contains your semikolon? if it is Dummy then there will be a getDummyAccess()

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Formatting-Indent, documentation out of date [message #760234 is a reply to message #760207] Thu, 01 December 2011 16:33 Go to previous message
Federico Sellanes is currently offline Federico SellanesFriend
Messages: 71
Registered: November 2011
Member
Thanks, i had not rule for the semicolon.
Previous Topic:Why can't I use terminals like this? ('missing EOF at' - error)
Next Topic:Terminal confusion
Goto Forum:
  


Current Time: Thu Apr 18 21:09:28 GMT 2024

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

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

Back to the top