Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] gtk - table open event fires twice on ENTER.

TableViewer is JFace, part of the Platform UI component. Please enter a 
bug against Platform UI, noting the Eclipse build number and type (I'm 
guessing GTK since you mention Gnome).

Knut




Stuart Guthrie <sfg@xxxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
06/20/2003 01:16 AM
Please respond to platform-swt-dev

 
        To:     platform-swt-dev@xxxxxxxxxxx
        cc: 
        Subject:        [platform-swt-dev] gtk - table open event fires twice on ENTER.



I'm working in the dark to some degree in terms of how this goes on
Windows. 

On Gnome, when I select a row in a table by pressing the ENTER key, and
I have added an addOpenListener to the table the event fires twice as
two openEvents. This is a problem. 

Code snip:

        thisTableViewer.addOpenListener(new IOpenListener() {
            public void open(OpenEvent event) {
                IStructuredSelection selection = (IStructuredSelection)
event.getSelection(); 
                message(shell, "Before");
//Do something to a form
                message(shell, "After"); 
            }
        });

An ENTER on the tableViewer causes a 'Before' message twice. When I
close the two forms that opened, I get an 'After' message as each is
closed.

TIA

-- 
Stuart Guthrie <sfg@xxxxxxxxxxxx>
Eureka IT Pty Ltd

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





Back to the top