Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tools-dev] [GEF] selected visuals not always on-top

GEF is not a "windowing" system and most graphical applications don't do
what you are describing.  Figure order must be kept in sync with model
z-order, unless you override several methods to avoid this.

But, if you want to do this by re-ordering your model, you should probably
do this by subclassing DragEditPartsTracker and changing
handleMouseDown(int) to bring-to-front you model object.  This will have
the effect of bringing its figure to front also.

If you did this any other way, like based on selection notification, then
Z-order would be changing when you programmatically select, such as
clicking in the Outline View.  Maybe this is what you want too?



                                                                                                                                                    
                      "Thilo                                                                                                                        
                      Schwidurski"             To:       <tools-dev@xxxxxxxxxxx>                                                                    
                      <thilo.s@xxxxxx>         cc:                                                                                                  
                      Sent by:                 Subject:  [tools-dev] [GEF] selected visuals not always on-top                                       
                      tools-dev-admin@e                                                                                                             
                      clipse.org                                                                                                                    
                                                                                                                                                    
                                                                                                                                                    
                      05/15/2002 12:51                                                                                                              
                      PM                                                                                                                            
                      Please respond to                                                                                                             
                      tools-dev                                                                                                                     
                                                                                                                                                    
                                                                                                                                                    



Hi,

any hints where I should look for the modifications needed to have the
Viewparts "Z-ordered" based on the selection?
Should I hook in a ISelectionChangedListener via AbstractEditPartViewer
#addSelectionChangedListener() ?
Can I utilize a LayerManager (a GraphicalRootEditPart)?
Regards, Thilo.


_______________________________________________
tools-dev mailing list
tools-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/tools-dev





Back to the top