コード例 #1
0
 @Override
 protected void refreshPage() {
   fAvailableListViewer.addFilter(fSourceFilter);
   fImportListViewer.getTable().removeAll();
   fSelected.clear();
   fAvailableFilter.setPattern("*"); // $NON-NLS-1$
   fSourceFilter.setState(fPage1.getState());
   fVersionFilter.setModel(fModels);
   fAvailableListViewer.refresh();
   pageChanged();
 }
コード例 #2
0
  private void addFilters() {
    fVersionFilter = new VersionFilter();
    fVersionFilter.setModel(fModels);
    fSourceFilter = new SourcePluginFilter(fPage1.getState());
    fAvailableFilter = new AvailableFilter();
    fAvailableListViewer.addFilter(fAvailableFilter);
    if (fFilterOldVersionButton.getSelection()) {
      fAvailableListViewer.addFilter(fVersionFilter);
    }
    fAvailableListViewer.addFilter(fSourceFilter);
    fRepositoryFilter = new RepositoryFilter();
    fAvailableListViewer.addFilter(fRepositoryFilter);

    fFilterJob =
        new WorkbenchJob("FilterJob") { // $NON-NLS-1$
          @Override
          public IStatus runInUIThread(IProgressMonitor monitor) {
            handleFilter();
            return Status.OK_STATUS;
          }
        };
    fFilterJob.setSystem(true);
  }