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: 13416
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


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
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: Fri Apr 03 02:25:25 GMT 2020

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

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

Back to the top