Exemplo n.º 1
0
 def close_project(self):
     if self.project is not None:
         progress = lisputils.create_progress('Closing "%s" project' %
                                              self.project.address)
         self.project.close()
         self.project = None
         progress.done()
Exemplo n.º 2
0
 def open_project(self, root=None):
     if not root:
         root = lisputils.ask_directory('Rope project root folder: ')
     if self.project is not None:
         self.close_project()
     progress = lisputils.create_progress('Opening "%s" project' % root)
     self.project = rope.base.project.Project(root)
     if lisp['ropemacs-enable-autoimport'].value():
         underlined = lisp['ropemacs-autoimport-underlineds'].value()
         self.autoimport = autoimport.AutoImport(self.project,
                                                 underlined=underlined)
     progress.done()
Exemplo n.º 3
0
 def write_project(self):
     if self.project is not None:
         progress = lisputils.create_progress(
             'Writing "%s" project data to disk' % self.project.address)
         self.project.sync()
         progress.done()