Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Crossreferencing graphiti resources from xtext grammar
Crossreferencing graphiti resources from xtext grammar [message #1780642] Thu, 25 January 2018 08:44 Go to next message
Vici S is currently offline Vici SFriend
Messages: 1
Registered: January 2018
Junior Member
I have two ecore-models in the same project, lets call them grammar.ecore and diagram.ecore.

grammar.ecore has, amongst others, the following structure:
A
  -name:EString
B -> A
  -next:A
C -> A


while diagram.ecore has, amongst others, the following structure:
D -> A


Now I have in a grammar created in xtext with the grammar.ecore model above, and rules that result in grammar like

B foo {
  next bar;
}

B bar {
   next foo;
}


I also have a graphiti-based graphical editor where I create one D per file. These D's should be referencable from the grammar. The grammar- and diagram-instance-files are all in the same project in the same folder.

I'm aware that I must expand the scope but since I'm new to the whole topic I have no clue how to do this.

Thanks in advance!
Re: Crossreferencing graphiti resources from xtext grammar [message #1780935 is a reply to message #1780642] Tue, 30 January 2018 07:56 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
Xtext can only have crross-reference to EMF models that are indexed.
This link might help
https://typefox.io/linking-xtext-models-with-other-emf-models


---
Get professional support from the Xtext committers at www.typefox.io
Previous Topic:maven mwe2Launcher for XText 2.13.0
Next Topic:Rule to ignore a whole line of text
Goto Forum:
  


Current Time: Thu Apr 18 01:48:13 GMT 2024

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

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

Back to the top