Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Focus handling in RAP different to RCP?
Focus handling in RAP different to RCP? [message #1762524] Fri, 12 May 2017 03:18 Go to next message
Manuel Mall is currently offline Manuel MallFriend
Messages: 19
Registered: September 2015
Junior Member
Hi,

we have a toolbar command whose active state is controlled via a handler in our RCP application like this:

      <handler
            commandId="au.net.synergy.wts.application.export_csv">
         <class
               class="au.net.synergy.wts.application.util.pdf.ExportCsvHandler">
         </class>
         <activeWhen>
            <with
                  variable="activeFocusControl">
               <instanceof
                     value="org.eclipse.nebula.widgets.grid.Grid">
               </instanceof>
            </with>
         </activeWhen>
      </handler>

So the command is active (enabled) when the activeFocusControl is a Grid. We do register the relevant Grid(s) via the IFocusService. This all works fine under RCP. However, under RAP it appears that clicking on the toolbar icon linked to this command changes the focus to the toolbar. Therefore the command becomes disabled the moment its clicked making it unusable.

Even if we remove this handler and have the command permanently active we have essentially the same problem. In the commands handler we look for the active focus control and we get the Toolbar in RAP while in RCP we get the Grid.

Thanks
Re: Focus handling in RAP different to RCP? [message #1763390 is a reply to message #1762524] Mon, 15 May 2017 07:35 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2286
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
please open a bugzilla and attach a simple project to demonstrate the issue.
Thanks,
Ivan
Re: Focus handling in RAP different to RCP? [message #1767754 is a reply to message #1763390] Mon, 10 July 2017 16:22 Go to previous message
Nicola  Zanaga is currently offline Nicola ZanagaFriend
Messages: 52
Registered: July 2009
Member
Hello, maybe this could be related to :
https://www.eclipse.org/forums/index.php/t/1087368/
Previous Topic:[ANN] RAP 3.2 released today
Next Topic:How to generate artifical mouse events?
Goto Forum:
  


Current Time: Wed Oct 17 16:29:34 GMT 2018

Powered by FUDForum. Page generated in 0.02062 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top