Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
atieq.rehman is currently offline atieq.rehman
Messages: 12
Registered: March 2010
Junior Member
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
Deepak Singla is currently offline Deepak Singla
Messages: 27
Registered: December 2009
Junior Member
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
atieq.rehman is currently offline atieq.rehman
Messages: 12
Registered: March 2010
Junior Member
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: Fri Jul 25 01:19:39 EDT 2014

Powered by FUDForum. Page generated in 0.01613 seconds