Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » How to access referenced models
How to access referenced models [message #477390] Fri, 16 May 2008 19:31 Go to next message
Eclipse UserFriend
Originally posted by: thejaswinir.yahoo.com

What is the api to access the models referenced by a model? In RSA, when I
open an UML model I can see the referenced models in an editor. How do I
access these using UML2 API's.
Also, is there a way to suppress warnings while opening an uml model?
Re: How to access referenced models [message #477401 is a reply to message #477390] Mon, 19 May 2008 13:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thejaswinir.yahoo.com

Is anyone aware of how to access referenced models of an UML model?
Re: How to access referenced models [message #477496 is a reply to message #477390] Mon, 09 June 2008 21:10 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Thejaswini,

- Have a look at EMFCoreUtil.getTransitiveImports() from GMF. This
indirectly uses the CrossReferenceAdapter to perform its task. The
"imports" and "exports" are cached so performance wise this would be better
than iterating through all the EReferences and figuring out what is being
referenced.

- Profiles have a special helper called Profile.getReferencedMetamodels().

- What warnings are you referring to when you say you want to suppress
warnings when opening a .uml model?

Cheers,
- James.

"Thejaswini" <thejaswinir@yahoo.com> wrote in message
news:3e53556343d8d81488b648b9c7b11da0$1@www.eclipse.org...
> What is the api to access the models referenced by a model? In RSA, when I
> open an UML model I can see the referenced models in an editor. How do I
> access these using UML2 API's.
> Also, is there a way to suppress warnings while opening an uml model?
>
Re: How to access referenced models [message #477558 is a reply to message #477496] Thu, 26 June 2008 19:41 Go to previous message
Eclipse UserFriend
Originally posted by: thejaswinir.yahoo.com

James, thanks for the response.

I don't have GMF in my environment. Is there a way to find out the
references using EMF?

The warning I am getting is

"The model being opened "xxxx" contains references to the following models
that are unavailable "yyyy" "zzzz" "

where the "xxx", "yyy", "zzz" are the full paths of the models.

This happens in the RSA environment.
Re: How to access referenced models [message #626583 is a reply to message #477390] Mon, 19 May 2008 13:56 Go to previous message
Eclipse UserFriend
Originally posted by: thejaswinir.yahoo.com

Is anyone aware of how to access referenced models of an UML model?
Re: How to access referenced models [message #626686 is a reply to message #477390] Mon, 09 June 2008 21:10 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Thejaswini,

- Have a look at EMFCoreUtil.getTransitiveImports() from GMF. This
indirectly uses the CrossReferenceAdapter to perform its task. The
"imports" and "exports" are cached so performance wise this would be better
than iterating through all the EReferences and figuring out what is being
referenced.

- Profiles have a special helper called Profile.getReferencedMetamodels().

- What warnings are you referring to when you say you want to suppress
warnings when opening a .uml model?

Cheers,
- James.

"Thejaswini" <thejaswinir@yahoo.com> wrote in message
news:3e53556343d8d81488b648b9c7b11da0$1@www.eclipse.org...
> What is the api to access the models referenced by a model? In RSA, when I
> open an UML model I can see the referenced models in an editor. How do I
> access these using UML2 API's.
> Also, is there a way to suppress warnings while opening an uml model?
>
Re: How to access referenced models [message #626749 is a reply to message #477496] Thu, 26 June 2008 19:41 Go to previous message
Eclipse UserFriend
Originally posted by: thejaswinir.yahoo.com

James, thanks for the response.

I don't have GMF in my environment. Is there a way to find out the
references using EMF?

The warning I am getting is

"The model being opened "xxxx" contains references to the following models
that are unavailable "yyyy" "zzzz" "

where the "xxx", "yyy", "zzz" are the full paths of the models.

This happens in the RSA environment.
Previous Topic:Loading a uml model with a profile (in an ATL transformation)
Next Topic:Usage of StateMachine or ProtocolStateMachine
Goto Forum:
  


Current Time: Fri Mar 29 07:45:26 GMT 2024

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

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

Back to the top