16 import os |
16 import os |
17 import sys |
17 import sys |
18 |
18 |
19 sys.path.insert(0, os.path.dirname(__file__)) |
19 sys.path.insert(0, os.path.dirname(__file__)) |
20 |
20 |
|
21 from PyQt5.QtCore import pyqtSlot |
21 from PyQt5.QtWidgets import QMenu, QApplication, QAction |
22 from PyQt5.QtWidgets import QMenu, QApplication, QAction |
22 from PyQt5.Qsci import QsciScintilla |
23 from PyQt5.Qsci import QsciScintilla |
23 |
24 |
24 from E5Gui.E5Application import e5App |
25 from E5Gui.E5Application import e5App |
25 from E5Gui import E5MessageBox |
26 from E5Gui import E5MessageBox |
82 |
83 |
83 "HistoryResult": self.__processHistoryResult, |
84 "HistoryResult": self.__processHistoryResult, |
84 |
85 |
85 "Changes": self.__processChanges, |
86 "Changes": self.__processChanges, |
86 } |
87 } |
|
88 |
|
89 @pyqtSlot() |
|
90 def handleNewConnection(self): |
|
91 """ |
|
92 Public slot for new incoming connections from a client. |
|
93 """ |
|
94 super(RefactoringServer, self).handleNewConnection() |
|
95 |
|
96 self.sendJson("GetConfig", {}) |
87 |
97 |
88 def activate(self): |
98 def activate(self): |
89 """ |
99 """ |
90 Public method to activate the refactoring server. |
100 Public method to activate the refactoring server. |
91 |
101 |