|
|
Re: Sirius Diagram/Tables and PropertyTesters [message #1838669 is a reply to message #1838449] |
Wed, 03 March 2021 10:03 |
|
Hello Felix,
We are fine, what about you?
I am not sure to follow. Yes, in Sirius we only provide property tester that we used, like the one you linked, and not every possible property tester on Sirius model elements. However, if you develop your own context menu, I don't see the loading issue with providing your own, especially if you contribute it in your VSP (odesgin plugin) or another plugin that will be loaded. Did I understand your remarks wrongly?
Best regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Sirius Diagram/Tables and PropertyTesters [message #1838726 is a reply to message #1838669] |
Thu, 04 March 2021 08:12 |
Felix Dorner Messages: 392 Registered: December 2015 |
Senior Member |
|
|
Simple example: I want to add a context menu action to a sirius table editor, but only if the table being shown has a representation id of = xyz, e.g. only in a Capella Requirements table. AFAIU, the only way to check that ID is to use an Eclipse property tester that checks for the description, e.g.:
https://github.com/eclipse/capella-vpms/blob/e3f6a1601edb57360cdf91015aca507db29bf1d4/plugins/org.polarsys.capella.vp.ms.ui/src/org/polarsys/capella/vp/ms/ui/DiagramPropertyTester.java#L39
To make this work, however, the plugin that contains the tester must be loaded, which can be forced, but isn't really a good thing to do.
If I put the tester in the .odesign plugin, this would work, but only for descripters of my own tables. What if I want to contribute an action to a table with descriptor x as a third party and have no control over the .odesign plugin? The answer is that the most appropriate place for such a property tester is the sirius diagram/table ui plugins themselves, where everyone can use them, and where activation is assured in all cases.
|
|
|
Powered by
FUDForum. Page generated in 0.02124 seconds