/** Overridden because we want to update the pre-computed list of accepted entries. */
  @Override
  protected void setFilter(String text, IProgressMonitor monitor, boolean updateFilter) {
    if (updateFilter) {
      if (fFilterMatcher.lastPattern.equals(text)) {
        // no actual change...
        return;
      }
      fFilterMatcher.setFilter(text);
      if (monitor.isCanceled()) {
        return;
      }
    }

    updateFilterEntries(monitor);
    // the filter is already updated in this class.
    super.setFilter(text, monitor, false);
  }
Ejemplo n.º 2
0
 /** Updates the current filter with the text field text. */
 protected void doFilterUpdate(IProgressMonitor monitor) {
   setFilter(text.getText(), monitor, true);
   onFinishUpdateJob();
 }