|
Re: Using pre-defined types in Sirius [message #1490970 is a reply to message #1489777] |
Fri, 28 November 2014 15:52 |
|
On 11/27/2014 06:43 PM, Bruno Costa wrote:
> Hi folks,
hi,
>
> Based on an ecore metamodel, I'm trying to develop a workbench by using
> Sirius. In such metamodel I have a metaclass named "Property" with two
> attributes: "name" (EString) and "type". For this attribute "type" I
> want to use in Sirius by setting this as pre-defined types, such as
> Boolean, Integer, Real and String.
This question seems specific to EMF.
If I understand correctly, the attribute "type" is generic and is
supposed to represent any concrete type. You could create an EEnum to
restrict the list of authorized types.
>
> My professor told me that maybe it could be done by importing UML
> package, but I couldn't figure out how can I do this.
> Do you guys understand me? I really appreciate if you guys could give me
> some tips.
--
Florian - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Using pre-defined types in Sirius [message #1500060 is a reply to message #1499783] |
Fri, 05 December 2014 16:58 |
|
On 12/05/2014 01:03 PM, Bruno Costa wrote:
> Hi Florian, thanks for your answer!
>
> Use a EEnum to represent pre-defined types sounds strange for me... I
> really don't know the best way to use pre-defined types, but, for
> example, in SysML plugin (Obeo Designer project), the pre-defined types
> come from UML, right?
> But, if you say that I can create an EEnum to represent the types, OK. I
> just want to know the best way to do this.
SysML extends UML and uses DataTypes from UML. If your "type" field
value represents any kind of type you could set "DataType" as type.
EString, EInterger and other primitive types defined in EMF are
DataTypes binding Java concrete types.
--
Florian - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.02768 seconds