score:1

you can not solve it within ecl, there's no support for this.

however you can solve it with java code. it's not easy, could be a few hours of work.

1) write a java method that detects the name of the active view and returns it as a string

2) make sure it's part of your application as a static class's static method

3) invoke it from your ecl script with the invoke-static command

4) compare the returned value in ecl script to what you've expected

check methods parsecomposites(), vieworeditorisfocused() and checknextcomposite() from this tutorial:

https://openchrom.wordpress.com/2011/08/12/capture-a-snapshot-of-the-active-vieweditor-in-a-rcp-application/

you do not need all the code from it and you need some editing too.

if you make an error/typo at points 2) or 3), then rcptt-runner will simply throw an exception without further explanation; be careful there.


Related Query

More Query from same tag