Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Property Sheet & Buttons
Property Sheet & Buttons [message #1338588] Wed, 07 May 2014 05:29
Sudharshan Ravi is currently offline Sudharshan Ravi
Messages: 12
Registered: March 2014
Junior Member
Hello,

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:
Quote:
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.
Thanks


I have looked at both of these articles:

http://www.eclipse.org/articles/Article-Properties-View/properties-view.html
http://www.eclipse.org/articles/Article-Tabbed-Properties/tabbed_properties_view.html

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.
http://i.imgur.com/Oth7Rw1.png
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!
Previous Topic:Drawing tables in GEF
Next Topic:Adding scrollbar to PaletteDrawer
Goto Forum:
  


Current Time: Sun Aug 31 06:29:48 EDT 2014

Powered by FUDForum. Page generated in 0.11901 seconds