Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TDL Open Source
TOP IDE
Commits
db485bef
Commit
db485bef
authored
Jun 17, 2020
by
Philip Makedonski
Browse files
+ minor scope fix
parent
4cdc3cf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
plugins/org.etsi.mts.tdl.TDLan2/src/org/etsi/mts/tdl/scoping/TDLan2ScopeProvider.java
...an2/src/org/etsi/mts/tdl/scoping/TDLan2ScopeProvider.java
+13
-8
No files found.
plugins/org.etsi.mts.tdl.TDLan2/src/org/etsi/mts/tdl/scoping/TDLan2ScopeProvider.java
View file @
db485bef
...
...
@@ -54,6 +54,7 @@ import org.etsi.mts.tdl.ValueAssignment;
import
org.etsi.mts.tdl.Variable
;
import
org.etsi.mts.tdl.VariableUse
;
import
org.etsi.mts.tdl.tdlPackage
;
import
org.etsi.mts.tdl.structuredobjectives.StructuredTestObjective
;
import
com.google.common.base.Function
;
import
com.google.inject.Inject
;
...
...
@@ -125,14 +126,18 @@ public class TDLan2ScopeProvider extends AbstractDeclarativeScopeProvider {
.
replaceAll
(
"(?s)with\\s*\\{.+"
,
""
)
.
trim
();
String
[]
split
=
targetGateName
.
split
(
"\\."
);
String
gate
=
split
[
1
];
String
component
=
split
[
0
];
if
(
component
.
equals
(
c
.
getEndPoint
().
get
(
0
).
getComponent
().
getName
())
&&
gate
.
equals
(
c
.
getEndPoint
().
get
(
0
).
getGate
().
getName
()))
{
elements
.
add
(
c
.
getEndPoint
().
get
(
1
));
}
else
if
(
component
.
equals
(
c
.
getEndPoint
().
get
(
1
).
getComponent
().
getName
())
&&
gate
.
equals
(
c
.
getEndPoint
().
get
(
1
).
getGate
().
getName
()))
{
elements
.
add
(
c
.
getEndPoint
().
get
(
0
));
if
(
split
.
length
==
2
)
{
String
gate
=
split
[
1
];
String
component
=
split
[
0
];
if
(
component
.
equals
(
c
.
getEndPoint
().
get
(
0
).
getComponent
().
getName
())
&&
gate
.
equals
(
c
.
getEndPoint
().
get
(
0
).
getGate
().
getName
()))
{
elements
.
add
(
c
.
getEndPoint
().
get
(
1
));
}
else
if
(
component
.
equals
(
c
.
getEndPoint
().
get
(
1
).
getComponent
().
getName
())
&&
gate
.
equals
(
c
.
getEndPoint
().
get
(
1
).
getGate
().
getName
()))
{
elements
.
add
(
c
.
getEndPoint
().
get
(
0
));
}
}
else
{
//TODO: handle?
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment