2 * Copyright (C) 2007 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.
10 package eu
.etaxonomy
.taxeditor
.preference
.matching
;
12 import org
.eclipse
.ui
.IWorkbench
;
14 import eu
.etaxonomy
.cdm
.model
.name
.NonViralName
;
15 import eu
.etaxonomy
.cdm
.strategy
.match
.IMatchStrategy
;
16 import eu
.etaxonomy
.cdm
.strategy
.match
.MatchException
;
17 import eu
.etaxonomy
.cdm
.strategy
.match
.MatchStrategyConfigurator
;
18 import eu
.etaxonomy
.taxeditor
.model
.MessagingUtils
;
21 * <p>NonViralNameMatchingPreference class.</p>
24 * @created Jan 22, 2010
27 public class NonViralNameMatchingPreference
extends AbstractMatchingPreferences
<NonViralName
>{
31 public void init(IWorkbench workbench
) {
32 super.init(workbench
);
33 clazz
= NonViralName
.class;
36 matchStrategy
= MatchStrategyConfigurator
.NonViralNameMatchStrategy();
37 } catch (MatchException e
) {
38 MessagingUtils
.error(this.getClass(), e
);
39 throw new RuntimeException(e
);
45 protected IMatchStrategy
getDefaultMatchStrategy() throws MatchException
{
46 return MatchStrategyConfigurator
.getDefaultNonViralNameMatchStrategy();