242 if cw and cw.noAttrs != self.noAttrs: |
242 if cw and cw.noAttrs != self.noAttrs: |
243 cw = None |
243 cw = None |
244 if cw and not (cw.external and |
244 if cw and not (cw.external and |
245 (className in module.classes or |
245 (className in module.classes or |
246 className in module.modules) |
246 className in module.modules) |
247 ): |
247 ): |
248 if className not in nodes: |
248 if className not in nodes: |
249 nodes.append(className) |
249 nodes.append(className) |
250 else: |
250 else: |
251 if className in module.classes: |
251 if className in module.classes: |
252 # this is a local class (defined in this module) |
252 # this is a local class (defined in this module) |
421 """ |
421 """ |
422 from .AssociationItem import AssociationItem, Generalisation |
422 from .AssociationItem import AssociationItem, Generalisation |
423 for route in routes: |
423 for route in routes: |
424 if len(route) > 1: |
424 if len(route) > 1: |
425 assoc = AssociationItem( |
425 assoc = AssociationItem( |
426 self.__getCurrentShape(route[1]), |
426 self.__getCurrentShape(route[1]), |
427 self.__getCurrentShape(route[0]), |
427 self.__getCurrentShape(route[0]), |
428 Generalisation, |
428 Generalisation, |
429 topToBottom=True) |
429 topToBottom=True) |
430 self.scene.addItem(assoc) |
430 self.scene.addItem(assoc) |
431 |
431 |
432 def getPersistenceData(self): |
432 def getPersistenceData(self): |
433 """ |
433 """ |
434 Public method to get a string for data to be persisted. |
434 Public method to get a string for data to be persisted. |