Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [gef-dev] SWT / Draw2d Events

Do you have lots of figures in the same parent?  There's an n^2 performance
issue in the way that lightweight system handle focus gained. It hasn't
been fixed, but you can workaround it by configuring the parent figure as
not containing focusable descendants, somehow.



                                                                       
             Manuel SELVA                                              
             <manuel.selva@st.                                     
             com>                                                       To
             Sent by:                  GEF development                 
             gef-dev-bounces@e         <gef-dev@xxxxxxxxxxx>         
             clipse.org                                                 cc
                                                                       
                                                                   Subject
             07/19/2007 10:30          Re: [gef-dev] SWT / Draw2d Events
             AM                                                        
                                                                       
                                                                       
             Please respond to                                         
              GEF development                                          
             <gef-dev@eclipse.                                       
                   org>                                                
                                                                       
                                                                       




Randy Hudson a écrit :
> Do you have a drag source? See this bug:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=10420
> But in my head I though this was no longer an issue.
>
> -Randy
>
>
>
>

>              Manuel SELVA

>              <manuel.selva@st.

>              com>
To
>              Sent by:                  gef mailing list

>              gef-dev-bounces@e         <gef-dev@xxxxxxxxxxx>

>              clipse.org
cc
>

>
Subject
>              07/19/2007 04:18          [gef-dev] SWT / Draw2d Events

>              AM

>

>

>              Please respond to

>               GEF development

>              <gef-dev@eclipse.

>                    org>

>

>

>
>
>
>
> 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
>
>
> _______________________________________________
> gef-dev mailing list
> gef-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/gef-dev
>
>
> _______________________________________________
> gef-dev mailing list
> gef-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/gef-dev
>
>
No i am not dealing at all with SWT DND.
Is the test previously described (consisting of adding system.out to
lighweightsystem event handler) proves that the bug is not in my code ?

Thanks

Manuel

_______________________________________________
gef-dev mailing list
gef-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/gef-dev




Back to the top