--- a/eric6/Graphics/UMLDiagramBuilder.py Thu May 06 19:46:00 2021 +0200 +++ b/eric6/Graphics/UMLDiagramBuilder.py Sat May 08 18:34:08 2021 +0200 @@ -37,6 +37,22 @@ """ return + def buildErrorMessage(self, msg): + """ + Public method to build an error string to be included in the scene. + + @param msg error message + @type str + @return prepared error string + @rtype str + """ + return ( + "<font color='{0}'>".format( + self.umlView.getDrawingColors()[0].name()) + + msg + + "</font>" + ) + def buildDiagram(self): """ Public method to build the diagram. @@ -79,3 +95,17 @@ @rtype dict """ return {} + + def fromDict(self, version, data): + """ + Public method to populate the class with data persisted by 'toDict()'. + + @param version version of the data + @type str + @param data dictionary containing the persisted data + @type dict + @return tuple containing a flag indicating success and an info + message in case the diagram belongs to a different project + @rtype tuple of (bool, str) + """ + return True, ""