svn commit: r13269 - branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: b00__1
Date: 2007-08-08 05:50:38-0700
New Revision: 13269
Modified:
branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
Log:
Change the getAssociationEnds() method to return the near ends instead of the opposite ends.
Modified: branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java?view=diff&rev=13269&p1=branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java&p2=branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java&r1=13268&r2=13269
==============================================================================
--- branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java (original)
+++ branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java 2007-08-08 05:50:38-0700
@@ -220,11 +220,9 @@
"handle must be instance of Classifier"); //$NON-NLS-1$
}
Collection result = new ArrayList();
- for (Association a : ((Classifier) handle).getAssociations()) {
- for (Property p : a.getMemberEnds()) {
- if (p.getType() == handle) {
- result.add(p);
- }
+ for (Property p : ((Classifier) handle).getAttributes()) {
+ if (p.getAssociation() != null) {
+ result.add(p);
}
}
return result;