175 from .ImportsDiagramBuilder import ImportsDiagramBuilder |
175 from .ImportsDiagramBuilder import ImportsDiagramBuilder |
176 return ImportsDiagramBuilder( |
176 return ImportsDiagramBuilder( |
177 self, self.umlView, self.__project, path, **kwargs) |
177 self, self.umlView, self.__project, path, **kwargs) |
178 elif diagramType == UMLDialog.ApplicationDiagram: |
178 elif diagramType == UMLDialog.ApplicationDiagram: |
179 from .ApplicationDiagramBuilder import ApplicationDiagramBuilder |
179 from .ApplicationDiagramBuilder import ApplicationDiagramBuilder |
180 return ApplicationDiagramBuilder(self, self.umlView, self.__project, |
180 return ApplicationDiagramBuilder( |
181 **kwargs) |
181 self, self.umlView, self.__project, **kwargs) |
182 elif diagramType == UMLDialog.NoDiagram: |
182 elif diagramType == UMLDialog.NoDiagram: |
183 return None |
183 return None |
184 else: |
184 else: |
185 raise ValueError(self.trUtf8( |
185 raise ValueError(self.trUtf8( |
186 "Illegal diagram type '{0}' given.").format(diagramType)) |
186 "Illegal diagram type '{0}' given.").format(diagramType)) |