[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[gef-dev] SWT / Draw2d Events
|
Hi all,
I am having a very strange behaviour, (i suppose i my own code) dealing
with Draw2d events inside a very large chart.
I created an eclipse view which contents is mainly a FigureCanvas
containing a lot of rectangle figures. These figures are "selectable" at
Draw2D sense (click on it enlarge and change the color of the border)
and at Eclipse sense (it fires a SelectionChanged event). My problem is
the following :
Sometimes (always reproductible on the first click) the listener on the
"clicked figure" is only notified after about 1 second ... this is too
longgggg for a user interface operation. Of course i had an inkling on
my code, for example an other listener notified before the instersting
one performing some long operation.
But after a lot of tests here is my conclusion :
i can't understand anything .... can't find where this 1 second is
lost ... I putted a simple System.out.print in the internal class of
LightWheightSystem
EventHandler (in mouseDown method before dispatching the event) and
noticed that it also about takes one second to come here !!!
Does it mean that SWT is responsible for the problem, can't think
such a thing since when my chart doesn't contain many figure this
doesn't hapen ...
Does anybody already reach such a problem or have an idea where it may
come from ?
Thanks in advance
Manuel Selva