Skip to main content


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 12:57 Go to next message
atieq.rehman is currently offline atieq.rehmanFriend
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 10:17 Go to previous messageGo to next message
Deepak Singla is currently offline Deepak SinglaFriend
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 11:24 Go to previous message
atieq.rehman is currently offline atieq.rehmanFriend
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: Thu Apr 25 22:17:38 GMT 2024

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

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

Back to the top