Extending the properties view [message #962694] |
Mon, 29 October 2012 04:57  |
Eclipse User |
|
|
|
Hi,
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?
Regards,
Simon
|
|
|
|
|
|
|
Re: Extending the properties view [message #1323980 is a reply to message #1312478] |
Wed, 30 April 2014 10:46  |
Eclipse User |
|
|
|
Hi Seif,
The reason you don't get the same window as Simon is because you're running what seems to be an earlier version of Papyrus (0.8, probably). I'm not sure how the window shown in your screenshot works - I usually get those files off the code. You can find them by checking out org.eclipse.papyrus.properties.uml;
Alternatively, and unless you have a specific reason for sticking to 0.8, I'd advise you to switch to a more recent version and follow Simon's instructions, which still work on 1.0
Philippe
|
|
|
Powered by
FUDForum. Page generated in 0.03940 seconds