def _on_done_project_dir(self, text):
self.project_dir = os.path.join(text, self.project_name)
if os.path.exists(self.project_dir):
sublime.error_message('The directory "%s" already exists!' % self.project_dir)
return
msg = 'The new project location will be "%s".\n\nPress OK to continue...' % (self.project_dir)
if sublime.ok_cancel_dialog(msg):
self.window.show_quick_panel([["C", "A project suitable for C"], ["C++", "A project suitable for C++"], ["C and C++", "A project suitable for both C and C++"]], self._on_done_select_project_type)
评论列表
文章目录