Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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



Back to the top