Skip to main content



      Home
Home » Modeling » TMF (Xtext) » How to let Quick Outline differ from Outline?
How to let Quick Outline differ from Outline? [message #1805879] Fri, 26 April 2019 07:35 Go to next message
Eclipse UserFriend
Hi,

In my outline view, I insert nodes from related EObjects that are stored in different files, e.g., related entities. Those nodes themself might contain related nodes and so on, with the possibility of cycles. In the outline, this is not a problem with XText, as cleverly nodes are created lazily on demand only.

In the Quick Outline (Ctrl+O) however, the complete outline is constructed. This lets my application crash, as cycles in the node hierarchy lead to a stack overflow.

How can I let the Quick Outline differ from the Outline? My first idea was to inject a different QuickOutlinePopup Implementation, however unfortunately, this class is not Injected but created by an explicite new call. What would be the best way to do this?

To clarify: I would love to tell the MyDSLOutlineProvider to skip showing related entries when called from the QuickOutline.

Best wishes,
Konrad
Re: How to let Quick Outline differ from Outline? [message #1805907 is a reply to message #1805879] Sat, 27 April 2019 12:22 Go to previous messageGo to next message
Eclipse UserFriend
you still should be able to customize
org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler.createPopup(Shell)
simply adding a binding for ShowQuickOutlineActionHandler should do the trick
Re: How to let Quick Outline differ from Outline? [message #1805942 is a reply to message #1805907] Mon, 29 April 2019 04:29 Go to previous message
Eclipse UserFriend
Hi Christian,

Thanks a lot! In hindsight, this should've been obvious to me, really... works like a charm now.

Previous Topic:Xtext Web: generate and save
Next Topic:resolve references between two files in webUI
Goto Forum:
  


Current Time: Fri Apr 25 22:00:40 EDT 2025

Powered by FUDForum. Page generated in 0.03381 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top