Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » How do I refer to Types in another uml model?
How do I refer to Types in another uml model? [message #473050] Wed, 30 May 2007 20:37 Go to next message
Pradeep is currently offline PradeepFriend
Messages: 54
Registered: July 2009
Member
Hi,

I have two uml models and corresponding ecore exported files. I would like
to refer the Types in one of these uml models in another uml model. Is it
possible? Also how do I make sure that corresponding ecore files are
referenced as well?

Currently I am creating primitive types whenever I need to refer to such a
type. But they are simply too many of them.

Thanks
Pradeep
Re: How do I refer to Types in another uml model? [message #473069 is a reply to message #473050] Thu, 31 May 2007 20:07 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Pradeep,

You could do something like what is done with the primitive types libraries
under org.eclipse.uml2.uml.resources\libraries.

If you want to use those, you could select "Load Resource..." from your "UML
Editor" menu, then you use use the types in the libraries.
When you export to ecore, you should get prompted to export those referenced
libraries at that time.

- James.

"Pradeep" <eclipseuser123@yahoo.com> wrote in message
news:f3kn9p$fkv$1@build.eclipse.org...
> Hi,
>
> I have two uml models and corresponding ecore exported files. I would like
> to refer the Types in one of these uml models in another uml model. Is it
> possible? Also how do I make sure that corresponding ecore files are
> referenced as well?
>
> Currently I am creating primitive types whenever I need to refer to such a
> type. But they are simply too many of them.
>
> Thanks
> Pradeep
>
>
Re: How do I refer to Types in another uml model? [message #473075 is a reply to message #473069] Fri, 01 June 2007 13:07 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
See also the "Introduction to UML2 Profiles" article
( http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html)
on the UML2 documentation page for an explanation of how to reuse types from
type libraries.

Kenn

"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:f3n9ui$r77$2@build.eclipse.org...
> Hi Pradeep,
>
> You could do something like what is done with the primitive types
> libraries
> under org.eclipse.uml2.uml.resources\libraries.
>
> If you want to use those, you could select "Load Resource..." from your
> "UML
> Editor" menu, then you use use the types in the libraries.
> When you export to ecore, you should get prompted to export those
> referenced
> libraries at that time.
>
> - James.
>
> "Pradeep" <eclipseuser123@yahoo.com> wrote in message
> news:f3kn9p$fkv$1@build.eclipse.org...
>> Hi,
>>
>> I have two uml models and corresponding ecore exported files. I would
>> like
>> to refer the Types in one of these uml models in another uml model. Is it
>> possible? Also how do I make sure that corresponding ecore files are
>> referenced as well?
>>
>> Currently I am creating primitive types whenever I need to refer to such
>> a
>> type. But they are simply too many of them.
>>
>> Thanks
>> Pradeep
>>
>>
>
>
Re: How do I refer to Types in another uml model? [message #619425 is a reply to message #473050] Thu, 31 May 2007 20:07 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Pradeep,

You could do something like what is done with the primitive types libraries
under org.eclipse.uml2.uml.resources\libraries.

If you want to use those, you could select "Load Resource..." from your "UML
Editor" menu, then you use use the types in the libraries.
When you export to ecore, you should get prompted to export those referenced
libraries at that time.

- James.

"Pradeep" <eclipseuser123@yahoo.com> wrote in message
news:f3kn9p$fkv$1@build.eclipse.org...
> Hi,
>
> I have two uml models and corresponding ecore exported files. I would like
> to refer the Types in one of these uml models in another uml model. Is it
> possible? Also how do I make sure that corresponding ecore files are
> referenced as well?
>
> Currently I am creating primitive types whenever I need to refer to such a
> type. But they are simply too many of them.
>
> Thanks
> Pradeep
>
>
Re: How do I refer to Types in another uml model? [message #619438 is a reply to message #473069] Fri, 01 June 2007 13:07 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
See also the "Introduction to UML2 Profiles" article
( http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html)
on the UML2 documentation page for an explanation of how to reuse types from
type libraries.

Kenn

"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:f3n9ui$r77$2@build.eclipse.org...
> Hi Pradeep,
>
> You could do something like what is done with the primitive types
> libraries
> under org.eclipse.uml2.uml.resources\libraries.
>
> If you want to use those, you could select "Load Resource..." from your
> "UML
> Editor" menu, then you use use the types in the libraries.
> When you export to ecore, you should get prompted to export those
> referenced
> libraries at that time.
>
> - James.
>
> "Pradeep" <eclipseuser123@yahoo.com> wrote in message
> news:f3kn9p$fkv$1@build.eclipse.org...
>> Hi,
>>
>> I have two uml models and corresponding ecore exported files. I would
>> like
>> to refer the Types in one of these uml models in another uml model. Is it
>> possible? Also how do I make sure that corresponding ecore files are
>> referenced as well?
>>
>> Currently I am creating primitive types whenever I need to refer to such
>> a
>> type. But they are simply too many of them.
>>
>> Thanks
>> Pradeep
>>
>>
>
>
Previous Topic:OCL Constraints within UML2
Next Topic:OCL Constraints within UML2
Goto Forum:
  


Current Time: Tue Apr 23 14:19:06 GMT 2024

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

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

Back to the top