|Re: 4.2RC3 : datatype with properties :: cannot assign property value in 'Properties'-View [message #891377 is a reply to message #888751]
||Sun, 24 June 2012 17:05
what you want to achieve is semantically not correct. You want to set the
value of a property at type level. Please be aware that concrete values are
not set at type level (well, defalt values can be set anyway for a
property), but at instance (specification) level. So you would have to
create an InstanceSpecification (e.g. for Number) with slots representing
concrete value (specifications) for a particular property.
What you've tried in your latest post (property subsetting) is semantically
"martin schwehla" schrieb im Newsbeitrag
I am quite new to papyrus and need some advice from you experts:
My goal is to model databases using a class diagram and applying a
codegenerator for generating ddl-code using the juno-release
== progress so far ==
* setup metamodel by creating a new profile
create Stereotype <BusinessEntity> extends metamodel class
custom datatype: varchar, number, date (plain, no connections to some
each custum datatype has some properties like fraction digit and so on
* apply metamodel
created papyrus-project and attached metamodel
when perform the action 'Model Explorer' [context-menu:import->import
registered profile] my profile does not appear. How can i add my metamodel
in this list ?
I apply my steretype by selecting my model -> Properties -> Profile -> Apply
Profiles, this works just fine.
I've created a new class-diagramm and can apply my stereotype to the classes
and can add properties to them like 'salary' with the datatype 'number'.
My problem is now that i cannot edit the custom properties in the
'Properties'-View in papyrus when selecting the property 'salary'. I want to
set the fraction digits for that.
Can one please give me a hint how to do this ? If one help me i will write a
tutorial. All the documentary i have found is stereotype-specific
Powered by FUDForum
. Page generated in 0.02048 seconds