Revision c82a307b
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/matching/TeamOrPersonMatchingPreference.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.taxeditor.preference.matching; |
11 | 11 |
|
12 |
import org.eclipse.ui.IWorkbench; |
|
13 |
|
|
12 | 14 |
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase; |
13 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
|
14 | 15 |
import eu.etaxonomy.cdm.strategy.match.IMatchStrategy; |
15 | 16 |
import eu.etaxonomy.cdm.strategy.match.MatchException; |
16 | 17 |
import eu.etaxonomy.cdm.strategy.match.MatchStrategyConfigurator; |
18 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
17 | 19 |
|
18 | 20 |
/** |
19 | 21 |
* @author n.hoffmann |
... | ... | |
23 | 25 |
public class TeamOrPersonMatchingPreference extends |
24 | 26 |
AbstractMatchingPreferences<TeamOrPersonBase> { |
25 | 27 |
|
28 |
/** {@inheritDoc} */ |
|
29 |
@Override |
|
30 |
public void init(IWorkbench workbench) { |
|
31 |
super.init(workbench); |
|
32 |
clazz = TeamOrPersonBase.class; |
|
26 | 33 |
|
27 |
@Override |
|
28 |
public Class<? extends CdmBase> getType(){ |
|
29 |
return TeamOrPersonBase.class; |
|
30 |
} |
|
34 |
try { |
|
35 |
matchStrategy = MatchStrategyConfigurator.TeamOrPersonMatchStrategy(); |
|
36 |
} catch (MatchException e) { |
|
37 |
MessagingUtils.error(this.getClass(), e); |
|
38 |
throw new RuntimeException(e); |
|
39 |
} |
|
40 |
} |
|
31 | 41 |
|
32 | 42 |
/** {@inheritDoc} */ |
33 | 43 |
@Override |
Also available in: Unified diff
ref #7006 Revert opcoach plugin for preferences