Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2017-07-20 09:36:17 +0000
committerJuergen Haug2017-07-20 09:36:17 +0000
commit0c372c856d5c62a4aa946f786a01a40a38b2b1fa (patch)
treeaa73db00878359295d5176c6ab02cf627431c51b
parent3dce114c3db6fb3ff51d596a7d4fa2971eb273ea (diff)
downloadorg.eclipse.etrice-0c372c856d5c62a4aa946f786a01a40a38b2b1fa.tar.gz
org.eclipse.etrice-0c372c856d5c62a4aa946f786a01a40a38b2b1fa.tar.xz
org.eclipse.etrice-0c372c856d5c62a4aa946f786a01a40a38b2b1fa.zip
[core] corrected scoping for BindingEndPoint_port
-rw-r--r--plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/scoping/RoomScopeProvider.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/scoping/RoomScopeProvider.java b/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/scoping/RoomScopeProvider.java
index 11fcad7e7..bbb627cf4 100644
--- a/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/scoping/RoomScopeProvider.java
+++ b/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/scoping/RoomScopeProvider.java
@@ -26,6 +26,7 @@ import org.eclipse.etrice.core.fsm.scoping.FSMScopeProvider;
import org.eclipse.etrice.core.room.ActorClass;
import org.eclipse.etrice.core.room.ActorContainerClass;
import org.eclipse.etrice.core.room.ActorRef;
+import org.eclipse.etrice.core.room.Binding;
import org.eclipse.etrice.core.room.BindingEndPoint;
import org.eclipse.etrice.core.room.CompoundProtocolClass;
import org.eclipse.etrice.core.room.ExternalPort;
@@ -258,6 +259,22 @@ public class RoomScopeProvider extends FSMScopeProvider {
return new SimpleScope(IScope.NULLSCOPE, scopes);
}
+
+ public IScope scope_BindingEndPoint_port(Binding bind, EReference ref) {
+ if(bind.getEndpoint1() != null){
+ return scope_BindingEndPoint_port(bind.getEndpoint1(), ref);
+ }
+
+ return IScope.NULLSCOPE;
+ }
+
+ public IScope scope_BindingEndPoint_actorRef(Binding bind, EReference ref) {
+ if(bind.getEndpoint1() != null){
+ return scope_BindingEndPoint_actorRef(bind.getEndpoint1(), ref);
+ }
+
+ return IScope.NULLSCOPE;
+ }
/**
* returns a flat list of Port scopes for a {@link BindingEndPoint}

Back to the top