Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Re: ecore metamodel from an existing
Re: ecore metamodel from an existing [message #472835] Mon, 30 April 2007 15:02 Go to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Kelly,

These questions sounds very UML specific and I don't know how to answer
them. I'll add the UML newsgroup to the "to" list and hope they
understand your question.


Kelly Garcés wrote:
> Hello:
>
> I downloaded an UML.ecore from ATL site. However, i couldn't instantie
> it. I decided create my own UML metamodel. I didn't create
> PrimitivePackage only Core. So, when i am creating a model conforms to
> UML metamodel, i have to create Datatype(String, Long) for each model
> :(. Is it posible create preexisting datatypes (maybe from UML
> metamodel)?
> How?
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: ecore metamodel from an existing [message #472836 is a reply to message #472835] Mon, 30 April 2007 16:55 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Kelly,

I'm not sure what you are trying to do exactly. If you are trying to create
your own UML model, you should not have to work with UML.ecore. When you
say "i couldn't instantiate it" do you mean you could not create an instance
of the UML metamodel?

Have a look at the getting started articles here
http://wiki.eclipse.org/index.php/MDT-UML2 .
The UML project defines primitive type libraries in
org.eclipse.uml2.uml.resources UMLPrimitiveTypes.library.uml. etc.
You can also define your own datatypes and primitive types.

Regards,
-James.


"Ed Merks" <merks@ca.ibm.com> wrote in message
news:f150e8$k4o$1@build.eclipse.org...
> Kelly,
>
> These questions sounds very UML specific and I don't know how to answer
> them. I'll add the UML newsgroup to the "to" list and hope they
> understand your question.
>
>
> Kelly Garc
Re: ecore metamodel from an existing [message #472839 is a reply to message #472836] Mon, 30 April 2007 20:40 Go to previous messageGo to next message
Kelly  arcés is currently offline Kelly arcésFriend
Messages: 22
Registered: July 2009
Junior Member
Dear James,

I need to create metamodels wich extend and/or restrict UML metamodel. As
i said in other posts, i couldn't use preexisting UML metamodel, so i
created i own UML metamodel (only core package). Later, i created others
metamodels (A,B,C) and loaded my UML metamodel. For example:
in 'A' metamodel i created 'BusinessElement' metaclass wich extends
'Class' of UML metamodel. Finally, i created a model ('aa') conforms to
'A' metamodel using generated EMF plugins. 'aa' model is input ATL
transformation.

When i create an model conforms to 'A' metamodel, i have to create
Datatype(String, Integer), but i would like preexisting datatypes... in
fact i would like to use preexisting UML metamodel (but i couldn't). what
shall i do?

Thanks in advance.
Re: ecore metamodel from an existing [message #472841 is a reply to message #472839] Tue, 01 May 2007 03:52 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Kelly,

Did you have a look at : https://bugs.eclipse.org/bugs/show_bug.cgi?id=77413
at the articles "Heavyweight extension" and "Extending UML".
Also, have a look at
http://www.eclipse.org/modeling/mdt/uml2/docs/presentations/ EclipseCon2007_LongTalk_files/frame.html

You should be able to use the existing primitive data types defined by the
UML metamodel in your extended model.
When you say that you couldn't use them, were there errors? or could you not
access them via the editor? or programmatically?
I would need more details of how you are creating your extension. Is this
a middleweight extension?

Regards,

- James.


"Kelly "Garc
Re: ecore metamodel from an existing [message #613772 is a reply to message #472835] Mon, 30 April 2007 16:55 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Kelly,

I'm not sure what you are trying to do exactly. If you are trying to create
your own UML model, you should not have to work with UML.ecore. When you
say "i couldn't instantiate it" do you mean you could not create an instance
of the UML metamodel?

Have a look at the getting started articles here
http://wiki.eclipse.org/index.php/MDT-UML2 .
The UML project defines primitive type libraries in
org.eclipse.uml2.uml.resources UMLPrimitiveTypes.library.uml. etc.
You can also define your own datatypes and primitive types.

Regards,
-James.


"Ed Merks" <merks@ca.ibm.com> wrote in message
news:f150e8$k4o$1@build.eclipse.org...
> Kelly,
>
> These questions sounds very UML specific and I don't know how to answer
> them. I'll add the UML newsgroup to the "to" list and hope they
> understand your question.
>
>
> Kelly Garc
Re: ecore metamodel from an existing [message #614247 is a reply to message #472836] Mon, 30 April 2007 20:40 Go to previous message
Kelly  arcés is currently offline Kelly arcésFriend
Messages: 22
Registered: July 2009
Junior Member
Dear James,

I need to create metamodels wich extend and/or restrict UML metamodel. As
i said in other posts, i couldn't use preexisting UML metamodel, so i
created i own UML metamodel (only core package). Later, i created others
metamodels (A,B,C) and loaded my UML metamodel. For example:
in 'A' metamodel i created 'BusinessElement' metaclass wich extends
'Class' of UML metamodel. Finally, i created a model ('aa') conforms to
'A' metamodel using generated EMF plugins. 'aa' model is input ATL
transformation.

When i create an model conforms to 'A' metamodel, i have to create
Datatype(String, Integer), but i would like preexisting datatypes... in
fact i would like to use preexisting UML metamodel (but i couldn't). what
shall i do?

Thanks in advance.
Re: ecore metamodel from an existing [message #614252 is a reply to message #472839] Tue, 01 May 2007 03:52 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Kelly,

Did you have a look at : https://bugs.eclipse.org/bugs/show_bug.cgi?id=77413
at the articles "Heavyweight extension" and "Extending UML".
Also, have a look at
http://www.eclipse.org/modeling/mdt/uml2/docs/presentations/ EclipseCon2007_LongTalk_files/frame.html

You should be able to use the existing primitive data types defined by the
UML metamodel in your extended model.
When you say that you couldn't use them, were there errors? or could you not
access them via the editor? or programmatically?
I would need more details of how you are creating your extension. Is this
a middleweight extension?

Regards,

- James.


"Kelly "Garc
Previous Topic:body code for operations
Next Topic:How do I implement interface like java.io.Serializable?
Goto Forum:
  


Current Time: Fri Apr 26 00:11:55 GMT 2024

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

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

Back to the top