class STJavaDevServer: def __init__(self): self.java_server = JavaServer() pass def getAllMethods(self, name): return list(self.java_server.getAllMethods(name)) def focusProject(self, prj_name): if self.java_server.focusProject(prj_name): return 'Found Java Project: %s' % prj_name return 'Project not found.' def codeComplete(self, file_path, offset): print 'Finding code completion...on file %s, offset %i' % (file_path, offset) if self.java_server.codeComplete(file_path, offset, completion_requestor.CompletionRequestor()): pass else: print 'can not call code completion...on file %s, offset %i' % (file_path, offset)
def __init__(self): self.java_server = JavaServer() pass