5 |
5 |
6 """ |
6 """ |
7 Module implementing the handler class for reading an XML project session file. |
7 Module implementing the handler class for reading an XML project session file. |
8 """ |
8 """ |
9 |
9 |
10 from E4Gui.E4Application import e4App |
10 from E4Gui.E4Application import e5App |
11 |
11 |
12 from .Config import sessionFileFormatVersion |
12 from .Config import sessionFileFormatVersion |
13 from .XMLHandlerBase import XMLHandlerBase |
13 from .XMLHandlerBase import XMLHandlerBase |
14 |
14 |
15 class SessionHandler(XMLHandlerBase): |
15 class SessionHandler(XMLHandlerBase): |
64 }) |
64 }) |
65 |
65 |
66 self.project = project |
66 self.project = project |
67 self.isGlobal = project is None |
67 self.isGlobal = project is None |
68 |
68 |
69 self.project = e4App().getObject("Project") |
69 self.project = e5App().getObject("Project") |
70 self.multiProject = e4App().getObject("MultiProject") |
70 self.multiProject = e5App().getObject("MultiProject") |
71 self.vm = e4App().getObject("ViewManager") |
71 self.vm = e5App().getObject("ViewManager") |
72 self.dbg = e4App().getObject("DebugUI") |
72 self.dbg = e5App().getObject("DebugUI") |
73 self.dbs = e4App().getObject("DebugServer") |
73 self.dbs = e5App().getObject("DebugServer") |
74 |
74 |
75 def startDocumentSession(self): |
75 def startDocumentSession(self): |
76 """ |
76 """ |
77 Handler called, when the document parsing is started. |
77 Handler called, when the document parsing is started. |
78 """ |
78 """ |