Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347881

Summary: Selection-sensitive Syntax Graph
Product: [Modeling] TMF Reporter: Ed Willink <ed>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Ed Willink CLA 2011-06-01 01:11:37 EDT
On the newsgroup, I asked if there was a way to paginate and linewrap large syntax graphs.

Having now used the Syntax Graph for OCL documentation (see the OCLinEcore language in the OCL Users Guide from RC3), the above does not really solve the problem. Text and pictures need to be intermixed, so unless the Xtext grammar is to support fully literate programming, assistance is just needed for partial pictures.

Suggest:

Multi-Select a portion of the grammar in the Xtext editor/Outline, Syntax Graph shows just the selected elements, SaveAs PNG then creates a Syntax Graph of those elements for inclusion in e.g. Textile.

This immediately solves the pagination problem by selecting just the elements for the page.

Selection of just the first five terms and then the last five terms of a 10 term rule ciould solve the line-wrapping problem. Maybe you have some nice ... left/right continuation markers.
Comment 1 Sven Efftinge CLA 2012-11-21 05:59:33 EST
I can see that this would have been helpful in your case, but the demand/effort ratio is not good enough to do this.