diff -r 717b72b32420 -r 8bb085c59cd2 Graphics/PackageDiagram.py --- a/Graphics/PackageDiagram.py Wed Sep 05 19:19:16 2012 +0200 +++ b/Graphics/PackageDiagram.py Wed Sep 05 20:07:02 2012 +0200 @@ -27,10 +27,11 @@ """ Class implementing a dialog showing a UML like class diagram of a package. """ - def __init__(self, package, parent=None, name=None, noAttrs=False): + def __init__(self, project, package, parent=None, name=None, noAttrs=False): """ Constructor + @param project reference to the project object @param package name of a python package to be shown (string) @param parent parent widget of the view (QWidget) @param name name of the view widget (string) @@ -40,7 +41,12 @@ self.allClasses = {} self.noAttrs = noAttrs - UMLDialog.__init__(self, self.package, parent) + pname = project.getProjectName() + if pname: + name = "{0}: {1}".format(pname, project.getRelativePath(self.package)) + else: + name = self.package + UMLDialog.__init__(self, name, parent) if not name: self.setObjectName("PackageDiagram")