Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraleherbau2011-05-05 08:10:33 +0000
committeraleherbau2011-05-05 08:10:33 +0000
commit3fe0ead0b4ba9bbe58a1d16305e46e808eab5d46 (patch)
tree41f17e4684938d2aa259223fe97c3ff9cf53d7b6 /python/src/tcf/services/remote/LineNumbersProxy.py
parent837458856781c52e4b635897c787180c15b58ce6 (diff)
downloadorg.eclipse.tcf-3fe0ead0b4ba9bbe58a1d16305e46e808eab5d46.tar.gz
org.eclipse.tcf-3fe0ead0b4ba9bbe58a1d16305e46e808eab5d46.tar.xz
org.eclipse.tcf-3fe0ead0b4ba9bbe58a1d16305e46e808eab5d46.zip
TCF Python: Allow callables (functions) as service callbacks
Diffstat (limited to 'python/src/tcf/services/remote/LineNumbersProxy.py')
-rw-r--r--python/src/tcf/services/remote/LineNumbersProxy.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/src/tcf/services/remote/LineNumbersProxy.py b/python/src/tcf/services/remote/LineNumbersProxy.py
index 84c4aa9ca..32211ddf2 100644
--- a/python/src/tcf/services/remote/LineNumbersProxy.py
+++ b/python/src/tcf/services/remote/LineNumbersProxy.py
@@ -18,6 +18,7 @@ class LineNumbersProxy(linenumbers.LineNumbersService):
self.channel = channel
def mapToSource(self, context_id, start_address, end_address, done):
+ done = self._makeCallback(done)
service = self
class MapCommand(Command):
def __init__(self):
@@ -33,6 +34,7 @@ class LineNumbersProxy(linenumbers.LineNumbersService):
return MapCommand().token
def mapToMemory(self, context_id, file, line, column, done):
+ done = self._makeCallback(done)
service = self
class MapCommand(Command):
def __init__(self):

Back to the top