diff options
author | acuccuru | 2013-04-03 09:14:42 +0000 |
---|---|---|
committer | acuccuru | 2013-04-03 09:14:42 +0000 |
commit | bebb0a731a9046750309af23e81a4c8cecec5d92 (patch) | |
tree | b574ae2caa42cbaf72a1d49791aa75a2db98f2a1 /extraplugins/marte | |
parent | b64d81136a5c6d008804916294a01a28c2ec681c (diff) | |
download | org.eclipse.papyrus-bebb0a731a9046750309af23e81a4c8cecec5d92.tar.gz org.eclipse.papyrus-bebb0a731a9046750309af23e81a4c8cecec5d92.tar.xz org.eclipse.papyrus-bebb0a731a9046750309af23e81a4c8cecec5d92.zip |
404786: [MARTE] ClientServerPortImpl.getSpecificationKind tries to modify the model from a ReadOnly transaction
https://bugs.eclipse.org/bugs/show_bug.cgi?id=404786
Temporary fix. Commented statements implying modification of the model. Inserted statements for printing error messages on System.err.
Diffstat (limited to 'extraplugins/marte')
-rw-r--r-- | extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerPortImpl.java | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerPortImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerPortImpl.java index ccfb8f3aaf9..9571c46b99f 100644 --- a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerPortImpl.java +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerPortImpl.java @@ -193,12 +193,24 @@ public class ClientServerPortImpl extends EObjectImpl implements ClientServerPor PortSpecificationKind portSpecKind = SPECIFICATION_KIND_EDEFAULT;
if(getBase_Port() != null) {
if(getBase_Port().getType() != null && getBase_Port().getType() instanceof Signal) {
- if(getProvInterface() != null)
- getProvInterface().clear();
- if(getReqInterface() != null)
- getReqInterface().clear();
- if(getFeaturesSpec() != null)
- setFeaturesSpec(null);
+ if(getProvInterface() != null) {
+ // getProvInterface().clear();
+ // FIXME 404786: [MARTE] ClientServerPortImpl.getSpecificationKind tries to modify the model from a ReadOnly transaction
+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=404786
+ System.err.println("Error: ClientServerPort " + getBase_Port().getQualifiedName() + " is Atomic. provInterface shall be empty");
+ }
+ if(getReqInterface() != null) {
+ // FIXME 404786: [MARTE] ClientServerPortImpl.getSpecificationKind tries to modify the model from a ReadOnly transaction
+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=404786
+ // getReqInterface().clear();
+ System.err.println("Error: ClientServerPort " + getBase_Port().getQualifiedName() + " is Atomic. reqInterface shall be empty");
+ }
+ if(getFeaturesSpec() != null) {
+ // FIXME 404786: [MARTE] ClientServerPortImpl.getSpecificationKind tries to modify the model from a ReadOnly transaction
+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=404786
+ // setFeaturesSpec(null);
+ System.err.println("Error: ClientServerPort " + getBase_Port().getQualifiedName() + " is Atomic. featureSpec shall be empty");
+ }
portSpecKind = PortSpecificationKind.ATOMIC;
}
else if(getBase_Port().getType() == null) {
@@ -218,8 +230,9 @@ public class ClientServerPortImpl extends EObjectImpl implements ClientServerPor portSpecKind = PortSpecificationKind.INTERFACE_BASED;
}
}
- else
- System.err.println("Error: An Atomic ClientServerPort must be typed with a Signal!");
+ else {
+ System.err.println("Error: ClientServerPort " + getBase_Port().getQualifiedName() + " is Atomic. It must be typed by a Signal");
+ }
}
return portSpecKind;
|