I have large RCP application we are attempting to run in RAP. We notice
that once we put up any dialog (e.g. Help->About, or Window->Show View,
Other, etc). then selection is not being processed the Eclipse
command/expression engine properly. Other parts of the application (other
Views ) still remain able to respond to changes in the selection service
just fine. However all the command handlers that have enabledWhen
expression see expression as being null. Also any Command Handler that uses
HandlerUtil.getCurrentSelection(evt) returns null even though I know
something is selected.
The other killer is that when I hit maximize window on my RAP application
then selection starts being processed again by the command/expression engine
correctly until any dialog is shown again and then it stops working again.
Of course when I try to re-create this with RCP Mail Template application, I
am unable. So I would not be surprised there is something in our code
crossing wires here with Eclipse.
Any pointers where to look or to check would be greatly appreciated.