Fixed a problem with updating views and editors after an import has run; Correcting...
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / editor / name / MisappliedGroup.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9
10 package eu.etaxonomy.taxeditor.editor.name;
11
12 import java.util.ArrayList;
13 import java.util.List;
14
15 import eu.etaxonomy.cdm.model.taxon.Taxon;
16
17 /**
18 * <p>MisappliedGroup class.</p>
19 *
20 * @author p.ciardelli
21 * @created 13.01.2009
22 * @version 1.0
23 */
24 public class MisappliedGroup extends AbstractGroup<Taxon> {
25
26 /**
27 * <p>Constructor for MisappliedGroup.</p>
28 *
29 * @param editor a {@link eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor} object.
30 */
31 public MisappliedGroup(TaxonNameEditor editor) {
32 super(editor);
33 }
34
35 /** {@inheritDoc} */
36 @Override
37 public void redraw() {
38 List<Taxon> misapplications = new ArrayList<Taxon>(editor.getTaxon().getMisappliedNames());
39 ContainerFactory.getInstance().fillGroup(this, misapplications, ContainerFactory.MISAPPLICATION, editor);
40 }
41
42 /**
43 * <p>onComplete</p>
44 *
45 * @return a boolean.
46 */
47 public boolean onComplete() {
48 // TODO Auto-generated method stub
49 return false;
50 }
51 }