|
Re: Collapsing all comments [message #1065875 is a reply to message #1065505] |
Fri, 28 June 2013 06:40 |
Alexander Nittka Messages: 1193 Registered: July 2009 |
Senior Member |
|
|
Hi,
for folding customization you may have a look at this post and the two corresponding projects on github
Terminology and Xturtle.
The overridden XtextEditor contains the code for collapsing regions on startup. Your main problem will be identifying which regions are comments and which regions are not. Currently there is no out of the box support for "typing" them. This issue is addressed in the implementation (proof of concept). For you it may much easier, simply override computeCommentFolding in DefaultFoldingRegionProvider and give the calculated regions a "comment" type.
Alex
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
[Updated on: Fri, 28 June 2013 10:25] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.01725 seconds