Project

General

Profile

« Previous | Next » 

Revision c82a307b

Added by Patrick Plitzner over 6 years ago

ref #7006 Revert opcoach plugin for preferences

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/matching/NonViralNameMatchingPreference.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.name.TaxonName;
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
 * <p>NonViralNameMatchingPreference class.</p>
......
23 25
 */
24 26
public class NonViralNameMatchingPreference extends AbstractMatchingPreferences<TaxonName>{
25 27

  
26
    @Override
27
    public Class<? extends CdmBase> getType(){
28
        return TaxonName.class;
29
    }
28
	/** {@inheritDoc} */
29
	@Override
30
    public void init(IWorkbench workbench) {
31
	    super.init(workbench);
32
		clazz = TaxonName.class;
33

  
34
		try {
35
			matchStrategy = MatchStrategyConfigurator.NonViralNameMatchStrategy();
36
		} catch (MatchException e) {
37
			MessagingUtils.error(this.getClass(), e);
38
			throw new RuntimeException(e);
39
		}
40
	}
30 41

  
31 42
	/** {@inheritDoc} */
32 43
	@Override

Also available in: Unified diff