|Extending the properties view [message #962694]
||Mon, 29 October 2012 08:57
| Simon Schwichtenberg
Registered: September 2011
I would like to create an own tab in the properties view for my application.
In particular, this tab gets activated, when the user selects a Transition from a ProtocolStateMachine or a Message in a Sequence Diagram. The tab has a widget that shows a list of available operations from a certain interface. When the user selects an operation, all elements that are necessary are created at once (trigger, event, etc.)
After some time I finally found out, that the properties view is managed by org.eclipse.papyrus.uml.properties resp. org.eclipse.papyrus.views.properties.model (very cool thing btw). Is there some documentation about how to use it?
I tried to create such a property model via the "Property view configuration" in the Papyrus New Wizard. What do I have to select for the source? The UML.ecore? Where do I find the right one? What do I have to select for the target? A new .ctx file?
I guess this generation process is to generate the Data Contexts so that Attributes and References from the Ecore model can be referenced.
I assume that the .ctx model is partitioned into the .xwt files. This means, when you create a widget model element, it isn't stored in the .ctx but in the .xwt. Is that correct?
I guess for my intention, there exists no predefined adequate widget. How can I create and include my self-made widget?
Powered by FUDForum
. Page generated in 0.02205 seconds