Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » propagate preferences to a plugin editor
propagate preferences to a plugin editor [message #306460] Sun, 30 July 2006 12: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 12:40 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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 08:01 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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: Sat Nov 09 04:59:29 GMT 2024

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

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

Back to the top