FontPropertyDescriptor does not notify updates [message #159309] |
Wed, 24 November 2004 09:29 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02692 seconds