How to access referenced models [message #477390] |
Fri, 16 May 2008 15:31  |
Eclipse User |
|
|
|
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 #477558 is a reply to message #477496] |
Thu, 26 June 2008 15:41  |
Eclipse User |
|
|
|
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 #626686 is a reply to message #477390] |
Mon, 09 June 2008 17:10  |
Eclipse User |
|
|
|
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 15:41  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.04241 seconds