Loading plugins/Prototypes/org.etsi.mts.tdl.common/src/org/etsi/mts/tdl/scoping/TDLScopeProvider.java +8 −3 Original line number Diff line number Diff line Loading @@ -123,10 +123,12 @@ public class TDLScopeProvider extends AbstractDeclarativeScopeProvider { testDescription = ((TestDescriptionReference)context.eContainer()).getTestDescription(); } TestConfiguration configuration = testDescription.getTestConfiguration(); if (configuration!=null) { EList<ComponentInstance> components = configuration.getComponentInstance(); IScope scope = Scopes.scopeFor(components); return scope; } } } else if (reference.getEType().getInstanceClass() == GateReference.class) { //TODO: safety checks in case invalid configuration is specified //TODO: only suggest connected gates as targets? Loading Loading @@ -341,6 +343,9 @@ public class TDLScopeProvider extends AbstractDeclarativeScopeProvider { } } else { } } else if (context instanceof ValueAssignment) { IScope scope = Scopes.scopeFor(((ProcedureCall)context.eContainer().eContainer()).getSignature().getParameter()); return scope; } } else if (reference.getEType().getInstanceClass() == Variable.class) { if (context instanceof Assignment) { Loading Loading
plugins/Prototypes/org.etsi.mts.tdl.common/src/org/etsi/mts/tdl/scoping/TDLScopeProvider.java +8 −3 Original line number Diff line number Diff line Loading @@ -123,10 +123,12 @@ public class TDLScopeProvider extends AbstractDeclarativeScopeProvider { testDescription = ((TestDescriptionReference)context.eContainer()).getTestDescription(); } TestConfiguration configuration = testDescription.getTestConfiguration(); if (configuration!=null) { EList<ComponentInstance> components = configuration.getComponentInstance(); IScope scope = Scopes.scopeFor(components); return scope; } } } else if (reference.getEType().getInstanceClass() == GateReference.class) { //TODO: safety checks in case invalid configuration is specified //TODO: only suggest connected gates as targets? Loading Loading @@ -341,6 +343,9 @@ public class TDLScopeProvider extends AbstractDeclarativeScopeProvider { } } else { } } else if (context instanceof ValueAssignment) { IScope scope = Scopes.scopeFor(((ProcedureCall)context.eContainer().eContainer()).getSignature().getParameter()); return scope; } } else if (reference.getEType().getInstanceClass() == Variable.class) { if (context instanceof Assignment) { Loading