Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Integrating xtext: cannot resolve references in integrated xtext editor
Integrating xtext: cannot resolve references in integrated xtext editor [message #1043132] Wed, 17 April 2013 06:16 Go to next message
Dennis D. is currently offline Dennis D.
Messages: 23
Registered: April 2013
Junior Member
Hi,

I like the xtext editor in papyrus very much for quick editing uml models. I want to make use of this with my own dsl. I have created my own xtext dsl and managed to launch the papyrus popup editor with this new dsl. Syntax highlighting, completion, ... works but I cannot reference elements that were defined outside the editor. My dsl is in general able to cross-reference, so I think this is some issue in papyrus or xtext/papyrus.

I have already explained and asked in the xtext forums:

http://www.eclipse.org/forums/index.php?t=msg&th=472888&

Any ideas?

Thanks
dennis

index.php/fa/14397/0/
Re: Integrating xtext: cannot resolve references in integrated xtext editor [message #1057968 is a reply to message #1043132] Fri, 10 May 2013 04:20 Go to previous messageGo to next message
Goood Guy is currently offline Goood Guy
Messages: 126
Registered: September 2011
Senior Member
Did you implemented the Scopeprovider? Without the scopeprovider xtext does not know how where to look for model elements that can be referenced. I think only elements that have a name or an id can be referenced.
http://www.eclipse.org/Xtext/documentation.html#scoping

[Updated on: Fri, 10 May 2013 04:23]

Report message to a moderator

Re: Integrating xtext: cannot resolve references in integrated xtext editor [message #1058996 is a reply to message #1057968] Thu, 16 May 2013 03:33 Go to previous message
Dennis D. is currently offline Dennis D.
Messages: 23
Registered: April 2013
Junior Member
Hi,

no, I did not implement a scope provider. I tested my dsl in files (not using the papyrus popup editor) and it worked as expected. So I assumed I do not need a scope provider. Am I wrong?

The xtend editors seem to require an IEditedResourceProvider, but I have no idea where to make use of that in the papyrus popup editor. Any idea?

dennis
Previous Topic: Node Interruptible Activity Region & Stereotype
Next Topic:Class Diagram with inner classes
Goto Forum:
  


Current Time: Mon Jul 28 22:48:02 EDT 2014

Powered by FUDForum. Page generated in 0.10527 seconds