Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Split grammar based text into 2 editors
Split grammar based text into 2 editors [message #1742767] Wed, 07 September 2016 13:47 Go to next message
Tamas Gorzsas is currently offline Tamas GorzsasFriend
Messages: 13
Registered: March 2016
Junior Member
Hi,

I have two xtext-based web editors with the same grammar.

I start writing a text in the first editor. Then I click into the second one and would like to continue the text in it.
The context (content assist, validate) should be considered as the continuation of the text in the first editor.

My idea is to load the first text into second editor and set the model objects to transient.
Is it possible? In this case will the second editor be empty but the context initialized correctly?
Is there a place where I can modify the ecore model after created but not rendered yet?

Thanks a lot,
Tamás
Re: Split grammar based text into 2 editors [message #1743526 is a reply to message #1742767] Fri, 16 September 2016 08:15 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
I'd rather try to use two separate resources with appropriate scoping, such that elements from the first are visible/referable in the second.

---
Get professional support from the Xtext committers at www.typefox.io
Previous Topic:XText Web Editor problem with OCL Constraints using Pivot Evaluator
Next Topic:Using Xtext as a textual concrete syntax tool
Goto Forum:
  


Current Time: Tue Apr 13 05:30:57 GMT 2021

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

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

Back to the top