Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Formatting-Indent, documentation out of date
Formatting-Indent, documentation out of date [message #760162] Thu, 01 December 2011 08:57 Go to next message
Eclipse UserFriend
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 09:37] by Moderator

Re: Formatting-Indent, documentation out of date [message #760207 is a reply to message #760162] Thu, 01 December 2011 10:43 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Formatting-Indent, documentation out of date [message #760234 is a reply to message #760207] Thu, 01 December 2011 11:33 Go to previous message
Eclipse UserFriend
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: Tue Oct 28 18:02:47 EDT 2025

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

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

Back to the top