예제 #1
0
 def call_eclim_java(self, project, file, offset, shell=True):
     eclim.update_java_src(project, file)
     complete_cmd = "-command java_complete \
                             -p %s \
                             -f %s \
                             -o %i \
                             -e utf-8 \
                             -l compact" % (project, file, offset)
     out = eclim.call_eclim(complete_cmd)
     return out
예제 #2
0
 def call_eclim_java(self, project, file, offset, shell=True):
     eclim.update_java_src(project, file)
     complete_cmd = "-command java_complete \
                             -p %s \
                             -f %s \
                             -o %i \
                             -e utf-8 \
                             -l compact" % (project, file, offset)
     out = eclim.call_eclim(complete_cmd)
     return out
예제 #3
0
    def call_eclim(self, project, filename, offset, ident_len, shell=True):
        eclim.update_java_src(project, filename)

        go_to_cmd = [
            '-command', 'java_search', '-n', project, '-f', filename, '-o',
            str(offset), '-e', 'utf-8', '-l',
            str(ident_len), '-x', 'references'
        ]
        out = eclim.call_eclim(go_to_cmd)
        return out
예제 #4
0
    def call_eclim(self, project, filename, offset, ident_len, shell=True):
        eclim.update_java_src(project, filename)

        go_to_cmd = ['-command', 'java_search',
                        '-n', project,
                        '-f', filename,
                        '-o', str(offset),
                        '-e', 'utf-8',
                        '-l', str(ident_len)]
        out = eclim.call_eclim(go_to_cmd)
        return out
예제 #5
0
 def call_eclim(self, project, _file, identifier):
     eclim.update_java_src(project, _file)
     complete_cmd = "-command java_import \
                             -n %s \
                             -p %s" % (project, identifier)
     class_name = eclim.call_eclim(complete_cmd)
     class_name = json.loads(class_name)
     if class_name:
         return class_name
     else:
         return []
예제 #6
0
 def call_eclim(self, project, _file, identifier):
     eclim.update_java_src(project, _file)
     complete_cmd = "-command java_import \
                             -n %s \
                             -p %s" % (project, identifier)
     class_name = eclim.call_eclim(complete_cmd)
     class_name = json.loads(class_name)
     if class_name:
         return class_name
     else:
         return []
예제 #7
0
def call_eclim(project, file, length, offset, new_name):
    eclim.update_java_src(project, file)
    rename_cmd = "$ECLIM -command java_refactor_rename \
                -p %s \
                -f %s \
                -o %i \
                -e utf-8 \
                -l %i \
                -n %s" % (project, file, offset, length, new_name)
    out = eclim.call_eclim(rename_cmd)
    return out
def call_eclim(project, file, offset, ident_len, shell=True):
    eclim.update_java_src(project, file)

    go_to_cmd = "$ECLIM -command java_search \
                            -n %s \
                            -f %s \
                            -o %i \
                            -e utf-8 \
                            -l %i" % (project, file, offset, ident_len)
    out = eclim.call_eclim(go_to_cmd)
    return out
예제 #9
0
 def call_eclim(self, project, _file, offset):
     eclim.update_java_src(project, _file)
     complete_cmd = "-command java_import \
                             -p %s \
                             -f %s \
                             -o %i \
                             -e utf-8" % (project, _file, offset)
     result = eclim.call_eclim(complete_cmd)
     try:
         result = json.loads(result)
     except ValueError:
         pass
     return result
예제 #10
0
def call_eclim(project, file, line, offset, applied_correction=None):
    eclim.update_java_src(project, file)

    correct_cmd = (
        "$ECLIM -command java_correct \
                -p %s \
                -f %s \
                -l %i \
                -o %i \
                -e utf-8 "
        % (project, file, line, offset)
    )
    if applied_correction != None:
        correct_cmd += " -a %i" % (applied_correction)

    out = eclim.call_eclim(correct_cmd)
    return out
예제 #11
0
    def call_eclim(self,
                   project,
                   filename,
                   offset,
                   ident_len,
                   fullWord,
                   shell=True):
        eclim.update_java_src(project, filename)

        # go_to_cmd = ['-command', 'java_search',
        #                 '-n', project,
        #                 '-f', filename,
        #                 '-o', str(offset),
        #                 '-e', 'utf-8',
        #                 '-l', str(ident_len)]

        go_to_cmd = ['-command', 'java_search', '-p', fullWord]

        out = eclim.call_eclim(go_to_cmd)
        return out
예제 #12
0
 def call_eclim(self, project, file_name, class_name):
     eclim.update_java_src(project, file_name)
     go_to_cmd = ['-command', 'java', '-p', project, '-c', class_name]
     out = eclim.call_eclim(go_to_cmd)
     return out
예제 #13
0
 def call_eclim(self, project, file_name, class_name, args=""):
     eclim.update_java_src(project, file_name)
     go_to_cmd = ['-command', 'java', '-p', project, '-c', class_name, '-a'] + args.split(" ")
     out = eclim.call_eclim(go_to_cmd)
     return out
예제 #14
0
 def call_eclim(self, project, file_name, class_name):
     eclim.update_java_src(project, file_name)
     go_to_cmd = ['-command', 'java', '-p', project, '-c', class_name]
     out = eclim.call_eclim(go_to_cmd)
     return out