RefactoringRope/CodeAssistServer.py

branch
server_client_variant
changeset 202
a111134b5dc7
parent 200
1584892147ef
child 203
c38750e1bafd
equal deleted inserted replaced
201:e677d82706d4 202:a111134b5dc7
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 import os 12 import os
13 import sys
14 13
15 from PyQt5.QtCore import pyqtSlot, QCoreApplication, QTimer 14 from PyQt5.QtCore import pyqtSlot, QCoreApplication, QTimer
16 15
17 from E5Gui.E5Application import e5App 16 from E5Gui.E5Application import e5App
18 17
19 # TODO: eliminate this 18 from .JsonServer import JsonServer
20 sys.path.insert(0, os.path.dirname(__file__))
21
22 from JsonServer import JsonServer
23 19
24 import Globals 20 import Globals
25 import Preferences 21 import Preferences
26 22
27 23
133 129
134 def __processCompletionsResult(self, result): 130 def __processCompletionsResult(self, result):
135 """ 131 """
136 Private method to process the completions sent by the client. 132 Private method to process the completions sent by the client.
137 133
138 @param result dictionary containg the result sent by the client 134 @param result dictionary containing the result sent by the client
139 @type dict 135 @type dict
140 """ 136 """
141 if "Error" in result: 137 if "Error" in result:
142 self.__completions = [] 138 self.__completions = []
143 else: 139 else:
186 182
187 def __processCallTipsResult(self, result): 183 def __processCallTipsResult(self, result):
188 """ 184 """
189 Private method to process the calltips sent by the client. 185 Private method to process the calltips sent by the client.
190 186
191 @param result dictionary containg the result sent by the client 187 @param result dictionary containing the result sent by the client
192 @type dict 188 @type dict
193 """ 189 """
194 if "Error" in result: 190 if "Error" in result:
195 self.__calltips = [] 191 self.__calltips = []
196 else: 192 else:
221 ####################################################################### 217 #######################################################################
222 218
223 def handleCall(self, method, params): 219 def handleCall(self, method, params):
224 """ 220 """
225 Public method to handle a method call from the client. 221 Public method to handle a method call from the client.
226
227 Note: This is an empty implementation that must be overridden in
228 derived classes.
229 222
230 @param method requested method name 223 @param method requested method name
231 @type str 224 @type str
232 @param params dictionary with method specific parameters 225 @param params dictionary with method specific parameters
233 @type dict 226 @type dict
272 self.__updateEditorLanguageMapping() 265 self.__updateEditorLanguageMapping()
273 266
274 def activate(self): 267 def activate(self):
275 """ 268 """
276 Public method to activate the code assist server. 269 Public method to activate the code assist server.
270
271 Note: This method provides for some growth potential.
272 Currently it is empty.
277 """ 273 """
278 pass 274 pass
279 275
280 def deactivate(self): 276 def deactivate(self):
281 """ 277 """

eric ide

mercurial