Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to force edit refresh when preferences change?
How to force edit refresh when preferences change? [message #189667] Thu, 28 July 2005 11:02 Go to next message
Milan Stanojevic is currently offline Milan StanojevicFriend
Messages: 13
Registered: July 2009
Junior Member
I have some color plugin preferences that correspond to colors on my GEF
editor. I have problems with refreshing the GEF editor to correctly
display new colors? I tried calling invalidate on top figure (diagram) but
that does nothing.
What is the correct way of doing this?
Re: How to force edit refresh when preferences change? [message #189805 is a reply to message #189667] Fri, 29 July 2005 15:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

repaint()

"Milan Stanojevic" <milanst@gmail.com> wrote in message
news:b948fb8ffb719c05341c72e129508c14$1@www.eclipse.org...
> I have some color plugin preferences that correspond to colors on my GEF
> editor. I have problems with refreshing the GEF editor to correctly
> display new colors? I tried calling invalidate on top figure (diagram) but
> that does nothing.
> What is the correct way of doing this?
>
Re: How to force edit refresh when preferences change? [message #190453 is a reply to message #189667] Wed, 03 August 2005 23:07 Go to previous message
benedict heal is currently offline benedict healFriend
Messages: 28
Registered: July 2009
Junior Member
Milan Stanojevic wrote:
> I have some color plugin preferences that correspond to colors on my GEF
> editor. I have problems with refreshing the GEF editor to correctly
> display new colors? I tried calling invalidate on top figure (diagram)
> but that does nothing. What is the correct way of doing this?


What I do is make the EditPart listen to the preferences page, and then
refreshVisuals(). It seems a bit overkill, but works form me.
Benedict
Previous Topic:TreeViewer with lazy loading
Next Topic:ShortestPathConnectionRouter overlaying connections
Goto Forum:
  


Current Time: Fri Dec 13 03:53:07 GMT 2024

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

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

Back to the top