Class: Ruber::FindInFiles::FindWidget::Filter

Inherits:
FilterModel
  • Object
show all
Defined in:
plugins/find_in_files/find_in_files_widgets.rb

Overview

Filter model used by the view in FindWidget

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) filterAcceptsRow(row, parent)

Filters a row

If the filter column is the first, always returns true for child rows, while always returns true for top level rows for all other values of the filter column

Returns:

  • (Boolean)


176
177
178
179
180
181
# File 'plugins/find_in_files/find_in_files_widgets.rb', line 176

def filterAcceptsRow row, parent
  if filter_key_column == 0 
    parent.valid? ? true : super
  else parent.valid? ? super : true
  end
end