Skip to main content



      Home
Home » Modeling » TMF (Xtext) » close crossreference for certain occurrences
close crossreference for certain occurrences [message #1724133] Sun, 21 February 2016 10:49 Go to next message
Eclipse UserFriend
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 11:06 Go to previous messageGo to next message
Eclipse UserFriend
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"
Re: close crossreference for certain occurrences [message #1724142 is a reply to message #1724137] Sun, 21 February 2016 11:52 Go to previous messageGo to next message
Eclipse UserFriend
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 11:55 Go to previous message
Eclipse UserFriend
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
Previous Topic:DSL with XText for PlantUML class diagrams
Next Topic:migrating to 2.9.x from 2.8.4
Goto Forum:
  


Current Time: Wed Jul 16 18:30:17 EDT 2025

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

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

Back to the top