Commit 7391ae53 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

* fixed resolution of time labels in STO (resolve container correctly), #196

parent d393c75d
Loading
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -100,8 +100,13 @@ public class TDLScopeProvider extends AbstractDeclarativeScopeProvider {
	
	public Iterator<EObject> getContainerContents(Element context) {
		TestDescription td = context.getParentTestDescription();
		if (td == null)
		if (td == null) {
			StructuredTestObjective sto = EcoreUtil2.getContainerOfType(context, StructuredTestObjective.class);
			if (sto == null) {
				return Collections.emptyIterator();
			}
			return sto.eAllContents();
		}
		return td.eAllContents();
	}