Skip to main content


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 10:16 Go to next message
Dennis Stampfer is currently offline Dennis StampferFriend
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 08:20 Go to previous messageGo to next message
Simon Schwichtenberg is currently offline Simon SchwichtenbergFriend
Messages: 127
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 08: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 07:33 Go to previous message
Dennis Stampfer is currently offline Dennis StampferFriend
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: Fri Apr 26 21:39:21 GMT 2024

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

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

Back to the top