Changeset 2272
- Timestamp:
- 03/16/08 15:28:53 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphor/trunk/gaphor/diagram/classes/association.py
r2271 r2272 386 386 Check navigability of the AssociationEnd. If property is owned by 387 387 class via ownedAttribute, then it is navigable. If property is 388 owned by association by own dedEnd, then it is not navigable.388 owned by association by ownedEnd, then it is not navigable. 389 389 Otherwise the navigability is unknown. 390 390 … … 398 398 399 399 if subject and subject.opposite: 400 # 401 # WARNING! see bug http://gaphor.devjavu.com/ticket/110 402 # 400 403 opposite = subject.opposite 401 404 if isinstance(opposite.type, UML.Interface): 402 405 type = subject.interface_ 403 el se: #isinstance(opposite.type, UML.Class):406 elif isinstance(opposite.type, UML.Class): 404 407 type = subject.class_ 408 elif isinstance(opposite.type, UML.Actor): 409 type = subject.actor 410 elif isinstance(opposite.type, UML.UseCase): 411 type = subject.useCase 412 else: 413 assert 0, 'Should never be reached' 405 414 406 415 if type and subject in type.ownedAttribute:
