Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Button in the PropertyView
Button in the PropertyView [message #504517] Mon, 21 December 2009 07:26 Go to next message
Alexander Mack is currently offline Alexander MackFriend
Messages: 100
Registered: July 2009
Senior Member
Hello,
I have an GEF application working fine for the moment. Now I want one property value of a model object to be a button.
I don't really know the way to implement that.
Isn't there a simple way to add a button to the property view?

I would appreciate any help.#
Best regards
Alex
Re: Button in the PropertyView [message #507030 is a reply to message #504517] Mon, 11 January 2010 12:38 Go to previous message
Deepak Singla is currently offline Deepak SinglaFriend
Messages: 27
Registered: December 2009
Junior Member
Hello,

Follow the steps:

1. create a class by extending the propertyDescriptor.
2. Override the method createPropertyEditor() in that class and you can create the instance of any types of dialog window there.
3. Use that extened class name in place of TextPropertyDescriptor in your class where you want to add property.

4. After runnign the program, when you click on the property cell, it will disoplay a button in property cell.
Previous Topic:ConnectionHandle and (ConnectionAnchor without a node)
Next Topic:PDE Incubator Dependency Visualization
Goto Forum:
  


Current Time: Sat Apr 20 01:53:24 GMT 2024

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

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

Back to the top