Hello

The TabFolder works wrong. There is a function tabSelected in TabUtil.js

tabSelected : function( evt ) {
      var tab = evt.getTarget();
      if( !org_eclipse_rap_rwt_EventUtil_suspend && tab.getChecked() ) {
        var widgetManager = org.eclipse.swt.WidgetManager.getInstance();
        // TODO [rst] Add item parameter in doWidgetSelected
        var itemId = widgetManager.findIdByWidget( tab );
        req.addParameter( "org.eclipse.swt.events.widgetSelected.item", 
                          itemId );
        var id = widgetManager.findIdByWidget( tab.getParent().getParent()
);
        org.eclipse.swt.EventUtil.doWidgetSelected( id, 0, 0, 0, 0 );
      }
    }

req is undefined variable in this function.

You can fix it with this line of code:
var req=org.eclipse.swt.Request.getInstance();

Thank you, Igor


_______________________________________________
rap-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/rap-dev

Reply via email to