Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to count the number of open editors in an Eclipse RCP Application?
How to count the number of open editors in an Eclipse RCP Application? [message #521891] Fri, 19 March 2010 08:08 Go to next message
Patrick is currently offline Patrick
Messages: 48
Registered: July 2009
Member
Hello! Smile

I'm beginning to use the swtbot to test my reccent eclipse rcp projekt. A specific editor is opened multiple times in my application and want to count how often the editor is opened.

How can i do that using swtbot?

Thanks! Smile
Re: How to count the number of open editors in an Eclipse RCP Application? [message #521990 is a reply to message #521891] Fri, 19 March 2010 14:38 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
bot.editors().size() ?

-- Ketan

On 3/19/10 1:08 AM, Patrick wrote:
> Hello! :)
>
> I'm beginning to use the swtbot to test my reccent eclipse rcp projekt.
> A specific editor is opened multiple times in my application and want to
> count how often the editor is opened.
>
> How can i do that using swtbot?
>
> Thanks! :)
>
Re: How to count the number of open editors in an Eclipse RCP Application? [message #522012 is a reply to message #521990] Fri, 19 March 2010 15:50 Go to previous message
Pascal G is currently offline Pascal G
Messages: 157
Registered: July 2009
Senior Member
Ketan Padegaonkar wrote:
> bot.editors().size() ?
>
> -- Ketan
>
> On 3/19/10 1:08 AM, Patrick wrote:
>> Hello! :)
>>
>> I'm beginning to use the swtbot to test my reccent eclipse rcp projekt.
>> A specific editor is opened multiple times in my application and want to
>> count how often the editor is opened.
>>
>> How can i do that using swtbot?
>>
>> Thanks! :)
>>
>

Sounds to me that he's talking about how many time the editor was
opened/closed, not how many editors are open at a specific time (I may
be wrong too). This is not a SWTBot-related issue... but the easy way
would be to have a static field in your editor and increment it each
time the open() method is called. Or something close to that.

Hope this helps.
--
Pascal GĂ©linas | Software Developer
*Nu Echo Inc.*
http://www.nuecho.com/ | http://blog.nuecho.com/

*Because performance matters.*
Previous Topic:SWTBot GEF Features
Next Topic:SWTBot Tutorial on Project Wiki don't work
Goto Forum:
  


Current Time: Tue Sep 16 17:48:11 GMT 2014

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

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