Author: bobtarling
Date: 2011-04-04 11:56:14-0700
New Revision: 19193
Modified:
trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java
Log:
When building a UML2 association reverse the aggregation ends
Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java?view=diff&pathrev=19193&r1=19192&r2=19193
==============================================================================
--- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java (original)
+++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java 2011-04-04 11:56:14-0700
@@ -200,9 +200,10 @@
Object connection = null;
if (elementType == metaTypes.getAssociation()) {
+ // Note for UML2 the aggregation ends are swapped
connection = modelImpl.getCoreFactory().buildAssociation(
- (Classifier) fromElement, (AggregationKind) fromStyle,
- (Classifier) toElement, (AggregationKind) toStyle,
+ (Classifier) fromElement, (AggregationKind) toStyle,
+ (Classifier) toElement, (AggregationKind) fromStyle,
(Boolean) unidirectional);
} else if (elementType == metaTypes.getAssociationEnd()) {
if (fromElement instanceof Association) {
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2716938
To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.