|Property Sheet & Buttons [message #1338588]
||Wed, 07 May 2014 05:29
| Sudharshan Ravi
Registered: March 2014
I want to do something really similar as described in this post http://www.eclipse.org/forums/index.php/t/161448/
I have quoted the relevant text from it:
I have an Eclass that has an Ereference with containment to a list of a different Eclass. Similar to the Thread/Threaditems mindmap example.
Rather than having the creation of the child class from the palette, I would like to manage the add/delete of the children
in the property sheet of the parent class.
I would like to not have the children drawn inside the parent diagram. (there might be too many instances to show the information).
I did make a change to the getPropertyDescriptors of the parent provider class to show the children item descriptors in the parent property sheet
Is there a way I can add either a menu action or a button to the property sheet to add a child?
Or another option I thought of was to create a Dialog. and have a button in the property sheet. (I don't know yet how to do this either).
In particular I want one that has the choices, up/down add/remove. Similar to the one that is generated for you when you have a eclass with an ereference to a list of objects already created. But this still would not create a new instance.
Any suggesstions would be appreciated.
I have looked at both of these articles:
I have used the Tabbed Properties extension to successfully show the properties in the property sheet but I want to add a remove button next to each of these properties as shown in the screenshot.
I am not quite sure how to do this since there seems to be no propertydescriptor for adding buttons or something similar.
Any help is appreciated!
Powered by FUDForum
. Page generated in 0.11901 seconds