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