Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Why is EClass missing from <<ModelLIbrary>>Ecore Primitive Types(Why is EClass missing from <<ModelLIbrary>>Ecore Primitive Types)
Why is EClass missing from <<ModelLIbrary>>Ecore Primitive Types [message #1695224] Tue, 12 May 2015 19:50 Go to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
Why is EClass missing from <<ModelLIbrary>>Ecore Primitive Types? Since I am a newbie to the use of Papyrus and Ecore I am thinking my understanding may be wrong. Or maybe a bug, but I have a hard time thinking it is a bug since Papyrus is so mature.

index.php/fa/21781/0/
  • Attachment: Snap3.png
    (Size: 31.12KB, Downloaded 719 times)


Oxygen 3a
Windows 10
Re: Why is EClass missing from &lt;&lt;ModelLIbrary&gt;&gt;Ecore Primitive Types [message #1695226 is a reply to message #1695224] Tue, 12 May 2015 20:14 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Paul,

The EClass metaclass is defined in the Ecore Metamodel. It is not a
primitive type, which in Ecore is an EDataType representing a Java type
whose features are not modeled, but rather it is a modeled metaclass,
which in Ecore is an EClass.

So, if you import the Ecore Metamodel, then you'll see EClass,
EDataType, EPackage, EModelElement, and other Ecore eclasses in it.

HTH,

Christian


On 2015-05-12 19:50:56 +0000, Paul Roubekas said:

> Why is EClass missing from <<ModelLIbrary>>Ecore Primitive Types?
> Since I am a newbie to the use of Papyrus and Ecore I am thinking my
> understanding may be wrong. Or maybe a bug, but I have a hard time
> thinking it is a bug since Papyrus is so mature.
>
>
> <image>
Re: Why is EClass missing from &lt;&lt;ModelLIbrary&gt;&gt;Ecore Primitive Types [message #1695270 is a reply to message #1695226] Wed, 13 May 2015 07:32 Go to previous message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hi,

In UML, EClass is also available as a Stereotype from the Ecore Profile (Extending uml::Class). To type something with an EClass, type it with a uml::Class and stereotype this class with EClass. The Stereotype is useful only if you want to add some specific information which isn't already defined in UML (i.e. ecore-specific properties)

Camille


Camille Letavernier
Previous Topic:Errors with Generate Java Code
Next Topic:Stereotype properties changed in Background not shown in properties view
Goto Forum:
  


Current Time: Thu Apr 25 20:06:13 GMT 2024

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

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

Back to the top