|Re: Own property tabs & sections for own Metamodel [message #1143608 is a reply to message #1142659]
||Fri, 18 October 2013 09:51
| Camille Letavernier
Registered: February 2011
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.
Powered by FUDForum
. Page generated in 0.04019 seconds