Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347231 - Enhance usability of the Syntax Graph (jumping and centering) / Dependency graph
Summary: Enhance usability of the Syntax Graph (jumping and centering) / Dependency graph
Status: NEW
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext Backlog (show other bugs)
Version: 2.0.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-25 18:48 EDT by Simon Stratmann CLA
Modified: 2012-11-21 05:51 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Stratmann CLA 2011-05-25 18:48:18 EDT
It would be great to have a function to jump inside the graph. Meaning that a double click or a right click in the graph would jump to the definition inside the view. Right now I link the view to the text, double click a definition, switch to the text view and then hit F3. That could be a bit easier.

I'd also appreciate it if the view could vertically center on a definition it just jumped to. As it is, if the text editor and the syntax graph are linked and I go to a definition in the text view(or using the function mentioned above), the definition is shown at the bottom of the view where I have to scroll down to see it entirely.

Another great feature, which I'll perhaps will do another request, would be a dependency graph which would show which definitions are used by others. In my rather complex language it's easy to lose the overview and this graph would definitely help.

Thanks so much for your work!
Comment 1 Ed Willink CLA 2011-06-01 00:58:47 EDT
In a large grammar it would be helpful if the Syntax Graph also jumped to link with text editor or outline selection.
Comment 2 Jan Koehnlein CLA 2011-06-03 09:00:54 EDT
> In a large grammar it would be helpful if the Syntax Graph also jumped to link
> with text editor or outline selection.

Doesn't it yet? Have you tried to ativate link with editor on the syntax view and the outline in parallel?
Comment 3 Ed Willink CLA 2011-06-03 09:09:17 EDT
(In reply to comment #2)
> > In a large grammar it would be helpful if the Syntax Graph also jumped to link
> > with text editor or outline selection.
> 
> Doesn't it yet? Have you tried to ativate link with editor on the syntax view
> and the outline in parallel?

Is that new in RC3? Excellent. Yes there is now a Syntax Graph Linked option.

However, when selecting an Outline item, the Syntax Graph scrolls to show the selected rule name at top or bottom. If the selected rule is e.g. 5 boxes high, it needs to scroll a bit further to show the top/bottom of all the boxes of the selection.