|
Re: Own property tabs & sections for own Metamodel [message #1143608 is a reply to message #1142659] |
Fri, 18 October 2013 09:51 |
Camille Letavernier Messages: 952 Registered: February 2011 |
Senior Member |
|
|
Hi Erik,
There is a wizard to generate a Properties view configuration for a custom Metamodel (Ecore) or UML Profile.
Go to File > New > Properties view Configuration. Select "Create from Ecore Metamodel", then choose your Ecore file as the source.
The Target must be a path in your workspace (something like myProject/properties/myProperties.ctx)
Press next: this will analyze your Ecore metamodel and find all concepts/properties. For each, choose whether you want to display them in the properties view (The default selection enables all primitive properties and non-containment references).
When you're satisfied with your selection, press finish.
Once the *.ctx file is generated, you can edit it using the "Properties view editor". You can e.g. rename the Tab (Or create new tabs and assign sections to them), re-order the properties editors, change the widget for editing some properties...
To deploy the Properties view configuration, you need to create a plug-in and fill the "oep.views.properties.context" extension point. The plug-in must contain the *.ctx file and the ui folder (containing *.xwt files).
We're still improving the wizard, so there might be some rough corners.
Regards,
Camille
Camille Letavernier
|
|
|
Re: Own property tabs & sections for own Metamodel [message #1143730 is a reply to message #1143608] |
Fri, 18 October 2013 11:36 |
Erik Schondorff Messages: 25 Registered: October 2013 |
Junior Member |
|
|
Hi Camille,
At first thanks for the answer.
I'm using 0.9.2 of papyrus.
At the point:
"
Press next: this will analyze your Ecore metamodel and find all concepts/properties. For each, choose whether you want to display them in the properties view (The default selection enables all primitive properties and non-containment references).
"
the wizard does something (shown by the cursor), but the only things that happen are: The Next button disables and the Finish Button enables and I'm stay in the current page of the wizard, no availability of a selection. By pressing the Finish Bbutton, nothing happens.
Is it because of the Papyrus version?
Erik
[Updated on: Fri, 18 October 2013 11:38] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04125 seconds