Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » close crossreference for certain occurrences
close crossreference for certain occurrences [message #1724133] Sun, 21 February 2016 15:49 Go to next message
Eleanor Richie is currently offline Eleanor RichieFriend
Messages: 125
Registered: August 2014
Senior Member
I have an object that tries to link with multiple previously declared identifiers. There is a specific identifier that I need to close the binding for it.
for example:
package pack1, pack2, pack3
import pack2 //This should be bound to pack2
import pack3 //This should be bound to pack3
import current //This doesn't have a declared package name and it should not give an error

I have been looking into doResolveLazyCrossReference but couldn't reach how to close the binding for a specific identifier.

Thanks
Re: close crossreference for certain occurrences [message #1724137 is a reply to message #1724133] Sun, 21 February 2016 16:06 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi I am not sure what you actually want to do. Can you be a bit more
specific what your imports do and what you mean by "bind"


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: close crossreference for certain occurrences [message #1724142 is a reply to message #1724137] Sun, 21 February 2016 16:52 Go to previous messageGo to next message
Eleanor Richie is currently offline Eleanor RichieFriend
Messages: 125
Registered: August 2014
Senior Member
by bind I mean crossreference. I extened the lazylinker and override the doLinkModel and checked on the EObject type and its text and continue instead of clearReferences and installProxies for this EObject. I am just not sure if this will have any harmful effect later
Re: close crossreference for certain occurrences [message #1724144 is a reply to message #1724142] Sun, 21 February 2016 16:55 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
yes but "why" do you want this. what is the goal you want to achieve.

either you have an implicit package then "current" should point to it.
or it should be a keyword indicating some stuff.

i dont think simply ignoring cross refs makes sense at this point


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:DSL with XText for PlantUML class diagrams
Next Topic:migrating to 2.9.x from 2.8.4
Goto Forum:
  


Current Time: Tue Apr 23 10:14:55 GMT 2024

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

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

Back to the top