MenuItem doesn't send selection event the 2nd time around [message #511079] |
Fri, 29 January 2010 13:05  |
Eclipse User |
|
|
|
So, the first time I select this menu item it works fine. But then it seems to disable all other menu items because none of them are responsive. There are no errors or messages in the logs..
The menu item in question invokes a FileDialog and the problem occurs only when a file was selected. If the dialog was cancelled, the menu items are ok. After the file is selected my application specific code which sets up all the widgets in the layout, so it's entirely possible that something in my app code is causing this .. but I'm having a tough time tracking it down.
A second side-effect is that the accelerator on the menu items disappear..
Does this ring any bells to anyone? I'll be glad to post code/configuration files if you just let me know which ones to post.
Thanks!
|
|
|
Re: MenuItem doesn't send selection event the 2nd time around [message #511409 is a reply to message #511079] |
Mon, 01 February 2010 04:52  |
Eclipse User |
|
|
|
Hi,
I don't know what would cause this, so I think you'll have to provide some
code. At a minimum the code that runs when an item is selected is needed;
more ideal would be a runnable snippet similar to
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org. eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet29. java
that shows the problem happening. Also, which platform do you see this on?
Grant
<larvell.jones@gmail.com> wrote in message
news:hjv820$jih$1@build.eclipse.org...
> So, the first time I select this menu item it works fine. But then it
seems to disable all other menu items because none of them are responsive.
There are no errors or messages in the logs..
>
> The menu item in question invokes a FileDialog and the problem occurs only
when a file was selected. If the dialog was cancelled, the menu items are
ok. After the file is selected my application specific code which sets up
all the widgets in the layout, so it's entirely possible that something in
my app code is causing this .. but I'm having a tough time tracking it down.
>
> A second side-effect is that the accelerator on the menu items disappear..
>
> Does this ring any bells to anyone? I'll be glad to post
code/configuration files if you just let me know which ones to post.
>
> Thanks!
|
|
|
Powered by
FUDForum. Page generated in 0.24041 seconds