Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java')
-rw-r--r--plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java b/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java
index cf6f2a6b5..a43cae7b1 100644
--- a/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java
+++ b/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java
@@ -647,9 +647,12 @@ public class RoomJavaValidator extends AbstractRoomJavaValidator {
@Check
public void checkMessageFromIf(MessageFromIf mfi){
- if(mfi.getFrom() != null){
- if(roomHelpers.getProtocol((InterfaceItem)mfi.getFrom()).getCommType() != CommunicationType.EVENT_DRIVEN)
- error("port must have event driven protocol", mfi, FSMPackage.eINSTANCE.getMessageFromIf_From());
+ if (mfi.getFrom() != null){
+ ProtocolClass protocol = roomHelpers.getProtocol((InterfaceItem)mfi.getFrom());
+ if (protocol!=null && !protocol.eIsProxy()) {
+ if (protocol.getCommType() != CommunicationType.EVENT_DRIVEN)
+ error("port must have event driven protocol", mfi, FSMPackage.eINSTANCE.getMessageFromIf_From());
+ }
}
}

Back to the top