'Initialization.'

def __init__(self, parent=None):

    SpyderPluginWidget.__init__(self, parent)
    supported_encodings = self.get_option('supported_encodings')
    search_path = self.get_option('search_path', None)
    self.search_text_samples = self.get_option('search_text_samples')
    search_text = self.get_option('search_text')
    search_text = [txt for txt in search_text if (txt not in self.search_text_samples)]
    search_text += self.search_text_samples
    search_text_regexp = self.get_option('search_text_regexp')
    exclude = self.get_option('exclude')
    exclude_idx = self.get_option('exclude_idx', None)
    exclude_regexp = self.get_option('exclude_regexp')
    in_python_path = self.get_option('in_python_path')
    more_options = self.get_option('more_options')
    self.findinfiles = FindInFilesWidget(self, search_text, search_text_regexp, search_path, exclude, exclude_idx, exclude_regexp, supported_encodings, in_python_path, more_options)
    layout = QVBoxLayout()
    layout.addWidget(self.findinfiles)
    self.setLayout(layout)
    self.initialize_plugin()
    self.toggle_visibility.connect(self.toggle)
