import eu.etaxonomy.taxeditor.model.PolytomousKeyRelationship;
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
import eu.etaxonomy.taxeditor.store.StoreUtil;
-import eu.etaxonomy.taxeditor.ui.campanula.compatibility.ICdmFormElement;
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection;
+import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
import eu.etaxonomy.taxeditor.ui.section.ITaxonBaseDetailSection;
import eu.etaxonomy.taxeditor.ui.section.key.GeographicalScopeDetailSection;
import eu.etaxonomy.taxeditor.ui.section.key.PolytomousKeyDetailSection;
.setTaxonBase((TaxonBase) input);
return true;
}
- if ((input instanceof DerivedUnit)
+ else if (input.getClass().equals(DerivedUnit.class)
&& (formSection instanceof IDerivedUnitFacadeDetailSection)) {
try {
StoreUtil.error(getClass(), e);
}
}
- if (input instanceof PolytomousKeyRelationship) {
+ else if (input instanceof PolytomousKeyRelationship) {
input = ((PolytomousKeyRelationship) input).getDestination();
}
- if ((input instanceof PolytomousKeyNode) &&
+ else if ((input instanceof PolytomousKeyNode) &&
(formSection instanceof PolytomousKeyDetailSection ||
formSection instanceof GeographicalScopeDetailSection ||
formSection instanceof ScopeRestrictionSection ||