2 * Copyright (C) 2014 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.taxeditor
.editor
.view
.checklist
.listener
;
11 import org
.eclipse
.jface
.viewers
.TableViewer
;
12 import org
.eclipse
.swt
.events
.ModifyEvent
;
13 import org
.eclipse
.swt
.events
.ModifyListener
;
14 import org
.eclipse
.swt
.widgets
.Text
;
16 import eu
.etaxonomy
.taxeditor
.editor
.view
.checklist
.filter
.ChecklistEditorFilter
;
23 public class ChecklistModifyListener
implements ModifyListener
{
25 private final Text searchText
;
26 private final TableViewer viewer
;
27 private final ChecklistEditorFilter filter
;
32 public ChecklistModifyListener(TableViewer viewer
, ChecklistEditorFilter filter
, Text searchText
) {
35 this.searchText
= searchText
;
39 * @see org.eclipse.swt.events.ModifyListener#modifyText(org.eclipse.swt.events.ModifyEvent)
42 public void modifyText(ModifyEvent e
) {
43 filter
.setSearchText(searchText
.getText());