Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » make only particular EReferences considered by the CrossReferencer?
make only particular EReferences considered by the CrossReferencer? [message #431766] Fri, 24 July 2009 09:31 Go to next message
Joel Greenyer is currently offline Joel GreenyerFriend
Messages: 170
Registered: July 2009
Senior Member
Hi,
is there an easy way to make the EcoreUtil.CrossReferencer only consider certain EReferences? Or would I have to
implement such functionality myself?

Thanks,
Joel
Re: make only particular EReferences considered by the CrossReferencer? [message #431770 is a reply to message #431766] Fri, 24 July 2009 13:48 Go to previous messageGo to next message
Joel Greenyer is currently offline Joel GreenyerFriend
Messages: 170
Registered: July 2009
Senior Member
Hi,
I have created my own cross referencer "RelevantReferencesCrossReferencer", inheriting from EcoreUtil.CrossReferencer. I
have overwritten boolean crossReference(...) and some other things. Now I can check whether a reference is contained in
a list of "relevant" references that I pass on in the find method. That does the job.

Joel Greenyer wrote:
> Hi,
> is there an easy way to make the EcoreUtil.CrossReferencer only consider
> certain EReferences? Or would I have to implement such functionality
> myself?
>
> Thanks,
> Joel
Re: make only particular EReferences considered by the CrossReferencer? [message #431771 is a reply to message #431770] Fri, 24 July 2009 14:09 Go to previous message
Felix Dorner is currently offline Felix DornerFriend
Messages: 676
Registered: July 2009
Senior Member
Joel Greenyer wrote:
> Hi,
> I have created my own cross referencer
> "RelevantReferencesCrossReferencer", inheriting from
> EcoreUtil.CrossReferencer. I have overwritten boolean
> crossReference(...) and some other things. Now I can check whether a
> reference is contained in a list of "relevant" references that I pass on
> in the find method. That does the job.

I think that's the way they do it in the book.
Previous Topic:Ideas for Traceability
Next Topic:ResourceSetImpl.createResource(URI) does not work with content type binding
Goto Forum:
  


Current Time: Sat Apr 20 03:47:26 GMT 2024

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

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

Back to the top