Community
Participate
Working Groups
In conjunction with the graphical editors for structure and behavior Xtext formatters are needed to yield a pretty and well readable textual model file. To this end the org.eclipse.etrice.core.formatting.RoomFormatter has to be filled with life.
Created attachment 188658 [details] initial contribution by Herward Ahlheit Initial version of formatter for ROOM DSL
Created attachment 188659 [details] improved formatter - whenever possible use grammar rule objects for linewraps and insert wraps after the rule - simplify code if tokens have common rules (e.g. ".", ":") - rules for <> and () brackets - rules for single and multiline comments
Created attachment 190256 [details] clean up of improved formatter
Comment on attachment 190256 [details] clean up of improved formatter accepted patch, thanks for the contribution!
The formatter works quite fine now.
commit was http://git.eclipse.org/c/etrice/org.eclipse.etrice.git/commit/?h=before_indigo&id=beb62ca5645b91fb0dadaaaaffd76e56981f2ed2
Created attachment 190387 [details] Tight brackets if they are empty
checked in http://git.eclipse.org/c/etrice/org.eclipse.etrice.git/commit/?h=before_indigo&id=dfb09a10a0806647b0058174422a0bf6d69589e3
closed resolved bug
tagged as version 0.1.0