RAP GEF endless redraw, no UI Access.. [message #1766638] |
Fri, 23 June 2017 18:07 |
Mehmet Karaman Messages: 63 Registered: November 2012 Location: Berlin |
Member |
|
|
Hello,
i am working currently on a Diagram/Graph viewer on RAP with GEF and Draw2D. The same code works on RCP Application, it's just a port to be able to show up things in a Webbrowser.
In the RAP variant the Canvas is redrawing endless, so i have no UI Access and nothing is visible. The EditParts doesn't have any changes, so there shouldn't be a demand to redraw the whole graph again. Is there any interval or is it possible to trigger the redrawing manually? What's the cause for the redrawing of the canvas?
I'm using the following versions:
org.eclipse.rap.gef_01.0.20151228-339
org.eclipse.rap.draw2d_01.0.20151228-339
and RAP in version 3.1.2
Thanks in advance.
Best Regards
Mehmet Karaman
[Updated on: Fri, 23 June 2017 18:13] Report message to a moderator
|
|
|
Re: RAP GEF endless redraw, no UI Access.. [message #1766699 is a reply to message #1766638] |
Mon, 26 June 2017 09:14 |
Mehmet Karaman Messages: 63 Registered: November 2012 Location: Berlin |
Member |
|
|
During debugging i've found the trigger point of the whole redrawing.. It has something to do with the DeferredUpdateManager, i've changed the performUpdate() Method of this class
public synchronized void performUpdate() {
if (true) // <--- this line was added
return; // <-- this line was added
....
Now the UI Freeze is gone, is this a bug in draw2d or am i using it in a wrong way?
Best regards
Mehmet Karaman
[Updated on: Mon, 26 June 2017 09:15] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03749 seconds