Subversion Repository Public Repository

litesoft

Diff Revisions 49 vs 610 for /trunk/Java/GWT/Dev/src/org/litesoft/GWT/client/dev/ui/testplan/TestPlanActionClickTableCell.java

Diff revisions: vs.
  @@ -31,18 +31,11 @@
31 31
32 32 protected WidgetSelector createWidgetSelector()
33 33 {
34 - return new WidgetSelector()
34 + return new NthWidgetSelector(mNth)
35 35 {
36 - private int mFound = -1;
37 -
38 - @SuppressWarnings({"SimplifiableIfStatement"})
39 36 public boolean isAcceptable( Widget pWidget )
40 37 {
41 - if ( pWidget instanceof Table )
42 - {
43 - return (mNth == null) || (++mFound == mNth);
44 - }
45 - return false;
38 + return foundNth(pWidget instanceof Table);
46 39 }
47 40 };
48 41 }