Skip to main content



      Home
Home » Eclipse Projects » GEF » how to add Color Object in Model (GEF)
how to add Color Object in Model (GEF) [message #517591] Mon, 01 March 2010 07:57 Go to next message
Eclipse UserFriend
new to eclipse plugin development ....
i m writing an editor having different types of shapes now i want to add Color property in my shape. that should be editable using properties view..
what can be the better way to do this.

1. add color in model
2. menepulate through editpart
3. make editable from properties view

any suggestions ????
Re: how to add Color Object in Model (GEF) [message #518500 is a reply to message #517591] Thu, 04 March 2010 05:17 Go to previous messageGo to next message
Eclipse UserFriend
According to m y knowledge for applying the color property, you have to all 3 steps you mentioned.

1. First you should add a color property in Model object class with setproperty and getproperty methods.

2. Add the property in property view with the help of property descriptor defined for model.

3. update the models figures in propertyChange method for the color property.

I hope this would help you.

Regards
Deepak Singla

Re: how to add Color Object in Model (GEF) [message #518884 is a reply to message #518500] Fri, 05 March 2010 06:24 Go to previous message
Eclipse UserFriend
Thanks for help i already have done with my requirements Razz
Previous Topic:HTML WYSIWYG editor with GEF?
Next Topic:properties view
Goto Forum:
  


Current Time: Thu Jul 24 10:42:11 EDT 2025

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

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

Back to the top