|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
| Pascal G
Registered: July 2009
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.*
Powered by FUDForum
. Page generated in 0.02475 seconds