src/eric7/Graphics/ApplicationDiagramBuilder.py

branch
server
changeset 10704
27d21e5163b8
parent 10610
bb0149571d94
parent 10683
779cda568acb
child 10806
2f6df822e3b9
equal deleted inserted replaced
10680:306373ccf8fd 10704:27d21e5163b8
460 AssociationType.IMPORTS, 460 AssociationType.IMPORTS,
461 colors=self.umlView.getDrawingColors(), 461 colors=self.umlView.getDrawingColors(),
462 ) 462 )
463 self.scene.addItem(assoc) 463 self.scene.addItem(assoc)
464 464
465 def parsePersistenceData(self, version, data): # noqa: U100 465 def parsePersistenceData(self, _version, data):
466 """ 466 """
467 Public method to parse persisted data. 467 Public method to parse persisted data.
468 468
469 @param version version of the data 469 @param _version version of the data (unused)
470 @type str 470 @type str
471 @param data persisted data to be parsed 471 @param data persisted data to be parsed
472 @type str 472 @type str
473 @return flag indicating success 473 @return flag indicating success
474 @rtype bool 474 @rtype bool
510 return { 510 return {
511 "project_name": self.project.getProjectName(), 511 "project_name": self.project.getProjectName(),
512 "no_modules": self.noModules, 512 "no_modules": self.noModules,
513 } 513 }
514 514
515 def fromDict(self, version, data): # noqa: U100 515 def fromDict(self, _version, data):
516 """ 516 """
517 Public method to populate the class with data persisted by 'toDict()'. 517 Public method to populate the class with data persisted by 'toDict()'.
518 518
519 @param version version of the data 519 @param _version version of the data (unused)
520 @type str 520 @type str
521 @param data dictionary containing the persisted data 521 @param data dictionary containing the persisted data
522 @type dict 522 @type dict
523 @return tuple containing a flag indicating success and an info 523 @return tuple containing a flag indicating success and an info
524 message in case the diagram belongs to a different project 524 message in case the diagram belongs to a different project

eric ide

mercurial