|Re: 4.2RC3 : datatype with properties :: cannot assign property value in 'Properties'-View [message #888757 is a reply to message #888751]
||Mon, 18 June 2012 15:33
| Camille Letavernier
Registered: February 2011
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 ?
You have to create a plug-in, and use the "org.eclipse.papyrus.extensionpoints.uml2.UMLProfile" extension point to register your profile. However, this is not required, as you can still use the "Apply profile" (From local workspace) button from the Profile tab of the properties view.
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.
Datatypes properties are currently considered as String properties. Can't you edit them at all ? It seems to work fine for me.
Profile tab > Unfold your stereotype > Select the property 'salary' > Use the Text box on the right to edit the value (As a String)
|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 21: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.01825 seconds