def __init__(self, parent=None): """Initialization.""" SpyderPluginWidget.__init__(self, parent) self.explorer = ProjectExplorerWidget( self, name_filters=self.get_option('name_filters'), show_all=self.get_option('show_all'), show_hscrollbar=self.get_option('show_hscrollbar'), options_button=self.options_button, single_click_to_open=CONF.get('explorer', 'single_click_to_open'), ) layout = QVBoxLayout() layout.addWidget(self.explorer) self.setLayout(layout) self.recent_projects = self.get_option('recent_projects', default=[]) self.current_active_project = None self.latest_project = None self.watcher = WorkspaceWatcher(self) # Initialize plugin self.initialize_plugin() self.explorer.setup_project(self.get_active_project_path()) self.watcher.connect_signals(self)
def __init__(self, parent=None, configuration=None): """Initialization.""" super().__init__(parent, configuration) self.recent_projects = self.get_conf('recent_projects', []) self.current_active_project = None self.latest_project = None self.watcher = WorkspaceWatcher(self) self.completions_available = False self.get_widget().setup_project(self.get_active_project_path()) self.watcher.connect_signals(self) self._project_types = OrderedDict()