Fix exception when using DerivativeEditor when no "real" RCP editor is
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / name / SynonymRelationshipWizardPage.java
index 3f9c8e25f163135d06b3e949130d30e03161c5b1..84f8f47ea48415927391dc3260e37a576940d77f 100644 (file)
@@ -15,6 +15,7 @@ import org.eclipse.jface.wizard.WizardPage;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.widgets.Composite;
 
+import eu.etaxonomy.cdm.model.common.TermType;
 import eu.etaxonomy.cdm.model.taxon.Synonym;
 import eu.etaxonomy.cdm.model.taxon.SynonymRelationship;
 import eu.etaxonomy.cdm.model.taxon.SynonymRelationshipType;
@@ -94,7 +95,7 @@ public class SynonymRelationshipWizardPage extends WizardPage implements IProper
 
         rootElement = new RootElement(formFactory, control);
 
-        combo_relationshipType = formFactory.createTermComboElement(SynonymRelationshipType.class,
+        combo_relationshipType = formFactory.createDefinedTermComboElement(TermType.SynonymRelationshipType,
                 rootElement, "Synonym Relationship Type", null, SWT.NULL);
 
         selection_relatedTo = formFactory