3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.taxeditor
.preference
.matching
;
13 import org
.eclipse
.ui
.IWorkbench
;
15 import eu
.etaxonomy
.cdm
.model
.agent
.TeamOrPersonBase
;
16 import eu
.etaxonomy
.cdm
.strategy
.match
.IMatchStrategy
;
17 import eu
.etaxonomy
.cdm
.strategy
.match
.MatchException
;
18 import eu
.etaxonomy
.cdm
.strategy
.match
.MatchStrategyConfigurator
;
19 import eu
.etaxonomy
.taxeditor
.model
.MessagingUtils
;
22 * <p>TeamOrPersonMatchingPreference class.</p>
25 * @created Jan 22, 2010
28 public class TeamOrPersonMatchingPreference
extends
29 AbstractMatchingPreferences
<TeamOrPersonBase
> {
32 * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
36 public void init(IWorkbench workbench
) {
38 clazz
= TeamOrPersonBase
.class;
41 matchStrategy
= MatchStrategyConfigurator
.TeamOrPersonMatchStrategy();
42 } catch (MatchException e
) {
43 MessagingUtils
.error(this.getClass(), e
);
44 throw new RuntimeException(e
);
49 * @see eu.etaxonomy.taxeditor.preference.matching.AbstractMatchingPreferences#getDefaultMatchStrategy()
53 protected IMatchStrategy
getDefaultMatchStrategy() throws MatchException
{
54 return MatchStrategyConfigurator
.getDefaultTeamOrPersonMatchStrategy();