Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Eclipse UI fails to repaint after processing a click on my view
Eclipse UI fails to repaint after processing a click on my view [message #323931] Sun, 13 January 2008 19:21 Go to next message
Eclipse UserFriend
Hi!

I have a view which contains an org.eclipse.draw2d.FigureCanvas with
several figures in it. Those figures listen to mouse clicks. Inside
the mousePressed() method I sometimes open windows like
MessageDialogs etc. If a dialog was opened it may happen that the
complete Eclipse UI gets white or just the toolbars and my view get
white. I think Eclipse wants to redraw everything but fails to do
so. Is there a method which redraws the whole Eclipse UI? Or is
there something fundamentally wrong with my code (opening Dialogs
inside the mousePressed method)?

Any suggestions?
Nicolai


--

I'm using an evaluation license of nemo since 133 days.
You should really try it!
http://www.malcom-mac.com/nemo
Re: Eclipse UI fails to repaint after processing a click on my view [message #323944 is a reply to message #323931] Mon, 14 January 2008 06:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Nicolai,

If you open a blocking dialog, that likely means your mouse event
doesn't finish processing until the dialog is completed and that's
perhaps not a good thing. Consider using Display.asyncExec to open your
dialog a little bit later and so that the mouse event processing can
return to the caller...


Nicolai Kamenzky wrote:
> Hi!
>
> I have a view which contains an org.eclipse.draw2d.FigureCanvas with
> several figures in it. Those figures listen to mouse clicks. Inside
> the mousePressed() method I sometimes open windows like
> MessageDialogs etc. If a dialog was opened it may happen that the
> complete Eclipse UI gets white or just the toolbars and my view get
> white. I think Eclipse wants to redraw everything but fails to do
> so. Is there a method which redraws the whole Eclipse UI? Or is
> there something fundamentally wrong with my code (opening Dialogs
> inside the mousePressed method)?
>
> Any suggestions?
> Nicolai
>
>
>
Re: Eclipse UI fails to repaint after processing a click on my view [message #323952 is a reply to message #323944] Mon, 14 January 2008 12:26 Go to previous message
Eclipse UserFriend
Thanks a lot, Ed!
> Consider using Display.asyncExec
That did it.

For those searching the archives here is a very interesting
article related to the problem I had:
< http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform
doc.isv/guide/swt_threading.htm>

Cheers,
Nicolai


--

I'm using an evaluation license of nemo since 133 days.
You should really try it!
http://www.malcom-mac.com/nemo
Previous Topic:Windows Linux swt_awt bridge flickering removed with Java 1.6.0.04 but....
Next Topic:Any example for a Form Editor to edit Objects
Goto Forum:
  


Current Time: Sat Jul 19 17:34:44 EDT 2025

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

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

Back to the top