From e798795205891b5dbcb516159b43a0c36a03fdf9 Mon Sep 17 00:00:00 2001 From: Juergen Haug Date: Fri, 10 Apr 2015 11:49:05 +0200 Subject: [generator.c] Bug 456625 Defines in _Utils.h for Port operations are missing Change-Id: I7bc8b1702310ecc3923c897d7b45a4f28430ef58 --- .../src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c') diff --git a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend index 752412987..e0c672ea0 100644 --- a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend +++ b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend @@ -205,7 +205,7 @@ class ActorClassGen extends GenericActorClassGenerator { val replEventPorts = eventPorts.filter[multiplicity!=1] val sendPorts = ac.allEndPorts.filter(p|(p.protocol as ProtocolClass).commType==CommunicationType::DATA_DRIVEN && p.conjugated && p.multiplicity==1) val recvPorts = ac.allEndPorts.filter(p|(p.protocol as ProtocolClass).commType==CommunicationType::DATA_DRIVEN && !p.conjugated && p.multiplicity==1) - val portsWithOperations = ac.allEndPorts.filter(p|p.portClass!=null && p.portClass.operations.size>0) + val portsWithOperations = ac.allInterfaceItems.filter(p|p.portClass!=null && p.portClass.operations.size>0) val filename = (ac.eContainer as RoomModel).name.replaceAll("\\.","_")+"_"+ac.name+"_Utils" ''' -- cgit v1.2.3