Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » propagate preferences to a plugin editor
propagate preferences to a plugin editor [message #306460] Sun, 30 July 2006 08:24 Go to next message
Eclipse UserFriend
Originally posted by: drojomar.notes.banesto.es

Hello,

I would like to know how to propagate changes in color options to
editors that are already opened. I have created a
IPropertyChangeListener and asociated it with my preferenceStore. But
once I see that something has changed, how can I tell to the editor to
scan again the text in order to update the colors?

thanks
Re: propagate preferences to a plugin editor [message #306477 is a reply to message #306460] Mon, 31 July 2006 08:40 Go to previous messageGo to next message
Eclipse UserFriend
David Rojo wrote:
> Hello,
>
> I would like to know how to propagate changes in color options to
> editors that are already opened. I have created a
> IPropertyChangeListener and asociated it with my preferenceStore. But
> once I see that something has changed, how can I tell to the editor to
> scan again the text in order to update the colors?

That's totally editor dependent ... for example, in source viewer based
editors (like the java editor) your invalidate the text presentation
which forces the editor to re-run the partitioning/reconciler code.

It's mentioned in the news groups, you should be able to find them.

Later,
PW
Re: propagate preferences to a plugin editor [message #306635 is a reply to message #306460] Thu, 03 August 2006 04:01 Go to previous message
Eclipse UserFriend
David Rojo wrote:

> Hello,
>
> I would like to know how to propagate changes in color options to
> editors that are already opened. I have created a
> IPropertyChangeListener and asociated it with my preferenceStore.

Note that this is not needed if your editor extends AbstractTextEditor
or one of its subclasses. There is already a hook
(handlePreferenceStoreChanged(PropertyChangeEvent)) which is called when
preferences change.

Dani

> But once I see that something has changed, how can I tell to the
> editor to scan again the text in order to update the colors?
>
> thanks
Previous Topic:Use Eclipse Search and Replace feature programatically from Ant?
Next Topic:Eclipse has Export wizard api?
Goto Forum:
  


Current Time: Mon Jun 09 08:23:41 EDT 2025

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

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

Back to the top