开发者

How to count the number of open editor instances in an Eclipse RCP Application?

开发者 https://www.devze.com 2022-12-23 05:02 出处:网络
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.

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! :-)


From the example of this book on SWTBot (p 34), it should be

_bot.editors().size()

But that is for all the opened editors, so you may need to filter that list (based on the title of the editor for instance) to compute the right number of instances.

0

精彩评论

暂无评论...
验证码 换一张
取 消