package eu.etaxonomy.taxeditor.ui.section.description;
import java.util.Collection;
+import java.util.Comparator;
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
import eu.etaxonomy.cdm.model.common.DefinedTerm;
-import eu.etaxonomy.cdm.model.common.TermType;
import eu.etaxonomy.cdm.model.description.IModifiable;
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
+import eu.etaxonomy.taxeditor.ui.section.DefaultCdmBaseComparator;
import eu.etaxonomy.taxeditor.ui.section.occurrence.dna.AbstractUnboundEntityCollectionSection;
/**
/** {@inheritDoc} */
@Override
public DefinedTerm createNewElement() {
- return DefinedTerm.NewInstance(TermType.Modifier,"","Untitled","");
+ return null;
}
/** {@inheritDoc} */
protected Collection<DefinedTerm> getEntityCollection(IModifiable entity) {
return entity.getModifiers();
}
+
+ @Override
+ public Comparator<DefinedTerm> getComparator() {
+ return new DefaultCdmBaseComparator<>();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public DefinedTerm addExisting() {
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public boolean allowAddExisting() {
+ return false;
+ }
}