+ this.path = (TreeSPath) path;\r
+\r
+ Integer count = 0;\r
+ for (TestDefinition task : tasks) {\r
+ String description = "";\r
+ if (task instanceof ExampleTask) {\r
+ description = ((ExampleTask) task).getDescription();\r
+ }\r
+ SimpleSElement element = new SimpleSElement(description);\r
+ TreeSPath taskPath = this.path.createChild(count.toString());\r
+ registry.register(taskPath, element);\r
+ if (task instanceof StructureAware) {\r
+ ((StructureAware) task).notifyCurrentPath(registry, taskPath);\r
+ }\r
+ count++;\r
+ }\r