On Monday, 29 August 2011 at 16:00, Ketan Padegaonkar wrote:
> It'd help attaching it to the bugzilla so it's shipped as part of the 
> distribution. Until then drop the file in a package of your choice and set 
> SWTBotPreferences.KEYBOARD_LAYOUT to the name of the resource when doing some 
> form of global setup.
> 
> 
> 

Sorry but I don't fully understand that. What is a package and resource in this 
context? (I'm using JRuby exclusively and don't know much Java at all)

thanks
Dan
> 
> Hope this helps:
> 
> https://github.com/ketan/SWTBot/blob/master/org.eclipse.swtbot.swt.finder.test/src/org/eclipse/swtbot/swt/finder/keyboard/KeyboardLayoutTest.java#L35
>  
> 
> Ketan
> studios.thoughtworks.com (http://studios.thoughtworks.com) | 
> twitter.com/ketanpkr (http://twitter.com/ketanpkr)
> > 
> > On Friday, 26 August 2011 at 15:13, Ketan Padegaonkar wrote:
> > 
> > 
> > 
> > > On Fri, Aug 26, 2011 at 3:57 AM, Daniel Lucraft <d...@fluentradical.com 
> > > (mailto:d...@fluentradical.com)> wrote:
> > > > is there a way to get CTabFolders in Swtbot? You can get a CTabItem and 
> > > > go
> > > > up from there, but I'd like to assert, for instance, that the 
> > > > CTabFolder is
> > > > empty.
> > > 
> > > SWTBot never supported (C)TabFolders because there's nothing one could do 
> > > with it (until now ;)
> > > 
> > > You could try reopening the SWTBot class to add this:
> > > 
> > > class SWTBot
> > >  def tab_folder?
> > >  finder.find_controls(of_type(CTabFolder.class)).any?
> > >  end
> > > 
> > >  def method_missing(method, *args, &blk)
> > >  klass = [
> > >  org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory,
> > >  org.eclipse.swtbot.swt.finder.utils.SWTUtils].find { |k| 
> > > k.respond_to?(method) }
> > > 
> > >  return klass.send(method, *args, &blk) if klass
> > >  super
> > >  end
> > > 
> > > 
> > > end
> > > 
> > > 
> > > 
> > > - Ketan
> > > studios.thoughtworks.com (http://studios.thoughtworks.com) | 
> > > twitter.com/ketanpkr (http://twitter.com/ketanpkr)
> > > 
> > > 
> > > _______________________________________________
> > > swtbot-dev mailing list
> > > swtbot-dev@eclipse.org (mailto:swtbot-dev@eclipse.org)
> > > https://dev.eclipse.org/mailman/listinfo/swtbot-dev
> > 
> > 
> > _______________________________________________
> >  swtbot-dev mailing list
> > swtbot-dev@eclipse.org (mailto:swtbot-dev@eclipse.org)
> > https://dev.eclipse.org/mailman/listinfo/swtbot-dev
> > 
> 
> _______________________________________________
> swtbot-dev mailing list
> swtbot-dev@eclipse.org (mailto:swtbot-dev@eclipse.org)
> https://dev.eclipse.org/mailman/listinfo/swtbot-dev

_______________________________________________
swtbot-dev mailing list
swtbot-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/swtbot-dev

Reply via email to