Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » FontPropertyDescriptor does not notify updates
FontPropertyDescriptor does not notify updates [message #159309] Wed, 24 November 2004 09:29 Go to next message
Eclipse UserFriend
Originally posted by: alain.origlia.impika.com

Hi all,

I 'm writing a FontPropertyDescriptor to be used in the property view. The
FontPropertyDescriptor calls a FontDialogCellEditor which opens the system
FontDialog box.

By now, I've got two properties that I want to edit in the view, a text
property and a font property. And I run into the following problem: when I
edit the text property and after validation, the model is properly updated
and the graphic editor displays the right modifications but when I edit the
font property, the model does not change.
I wonder if I must add a ICellEditorListener to make my model be updated.
But in this case, why don't I have to do the same when I use the
TextPropertyDescriptor for my text property? I also tried with a
ColorPropertyDescriptor and it works too. So with custom property
descriptors, is there someting else to do rather than simply declare the
descriptors in the property source?

Thanks for your help,

Alain
Re: FontPropertyDescriptor does not notify updates [message #159327 is a reply to message #159309] Wed, 24 November 2004 13:48 Go to previous message
Eclipse UserFriend
Originally posted by: alain.origlia.impika.com

ok I found it. It was just a problem of repaint of the figures! Changing a
font of a figure does not make it be repaint while for example changing the
foreground color does.

So the answer to my question is : To use your custom property descriptor,
you just have to add it in the list of descriptors of the IPropertySource
object. Nothing else.

"Alain Origlia" <alain.origlia@impika.com> a
Previous Topic:Embedding Texteditor into GEF?
Next Topic:Undo with keyboard
Goto Forum:
  


Current Time: Thu Apr 25 21:19:16 GMT 2024

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

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

Back to the top