Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Property Sheet & Buttons
Property Sheet & Buttons [message #1338587] Wed, 07 May 2014 09:27 Go to next message
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!
Re: Property Sheet & Buttons [message #1341507 is a reply to message #1338587] Thu, 08 May 2014 14:13 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1595
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hi,

not sure if buttons are possible in standard property sheets, but they can
be added to tabbed properties. See the method createButton in
TabbedPropertySheetWidgetFactory's base class FormaToolkit.

Michael
Previous Topic:Tool Palette drag and drop error
Next Topic:Highlighting of Anchors
Goto Forum:
  


Current Time: Tue Sep 23 18:38:36 GMT 2014

Powered by FUDForum. Page generated in 0.01895 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software