18 import zlib |
18 import zlib |
19 |
19 |
20 from eric7.UI.Info import Version |
20 from eric7.UI.Info import Version |
21 |
21 |
22 from .EricRequestCategory import EricRequestCategory |
22 from .EricRequestCategory import EricRequestCategory |
|
23 from .EricServerCoverageRequestHandler import EricServerCoverageRequestHandler |
23 from .EricServerDebuggerRequestHandler import EricServerDebuggerRequestHandler |
24 from .EricServerDebuggerRequestHandler import EricServerDebuggerRequestHandler |
24 from .EricServerFileSystemRequestHandler import EricServerFileSystemRequestHandler |
25 from .EricServerFileSystemRequestHandler import EricServerFileSystemRequestHandler |
25 |
26 |
26 # TODO: remove dependency on 'eric7.UI.Info' |
27 # TODO: remove dependency on 'eric7.UI.Info' |
27 |
28 |
61 # create and register the 'File System' request handler |
62 # create and register the 'File System' request handler |
62 self.__fileSystemRequestHandler = EricServerFileSystemRequestHandler(self) |
63 self.__fileSystemRequestHandler = EricServerFileSystemRequestHandler(self) |
63 self.registerRequestHandler( |
64 self.registerRequestHandler( |
64 EricRequestCategory.FileSystem, |
65 EricRequestCategory.FileSystem, |
65 self.__fileSystemRequestHandler.handleRequest, |
66 self.__fileSystemRequestHandler.handleRequest, |
|
67 ) |
|
68 |
|
69 # create and register the 'Coverage' request handler |
|
70 self.__coverageRequestHandler = EricServerCoverageRequestHandler(self) |
|
71 self.registerRequestHandler( |
|
72 EricRequestCategory.Coverage, |
|
73 self.__coverageRequestHandler.handleRequest, |
66 ) |
74 ) |
67 |
75 |
68 # TODO: 'Project' handler not implemented yet |
76 # TODO: 'Project' handler not implemented yet |
69 # TODO: implement an 'EditorConfig' handler (?) |
77 # TODO: implement an 'EditorConfig' handler (?) |
70 |
78 |
329 connection.close() |
337 connection.close() |
330 |
338 |
331 def __closeIdeConnection(self, shutdown=False): |
339 def __closeIdeConnection(self, shutdown=False): |
332 """ |
340 """ |
333 Private method to close the connection to an eric-ide. |
341 Private method to close the connection to an eric-ide. |
|
342 |
|
343 @param shutdown flag indicating a shutdown process |
|
344 @type bool |
334 """ |
345 """ |
335 if self.__connection is not None: |
346 if self.__connection is not None: |
336 self.__selector.unregister(self.__connection) |
347 self.__selector.unregister(self.__connection) |
337 try: |
348 try: |
338 print( |
349 print( |