Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347881 - Selection-sensitive Syntax Graph
Summary: Selection-sensitive Syntax Graph
Status: CLOSED WONTFIX
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-01 01:11 EDT by Ed Willink CLA
Modified: 2012-11-21 05:59 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.