Revision f18e39bb
Added by Niels Hoffmann over 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/forms/CdmFormFactory.java | ||
---|---|---|
123 | 123 |
import eu.etaxonomy.cdm.model.taxon.TaxonBase; |
124 | 124 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
125 | 125 |
import eu.etaxonomy.cdm.strategy.parser.ParserProblem; |
126 |
import eu.etaxonomy.taxeditor.model.TaxonRelationshipTypeInverseContainer; |
|
126 | 127 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
127 | 128 |
import eu.etaxonomy.taxeditor.ui.forms.password.EditPasswordElement; |
128 | 129 |
import eu.etaxonomy.taxeditor.ui.openurl.IOpenUrlEnabled; |
... | ... | |
143 | 144 |
import eu.etaxonomy.taxeditor.ui.section.classification.ClassificationDetailSection; |
144 | 145 |
import eu.etaxonomy.taxeditor.ui.section.classification.TaxonNodeDetailElement; |
145 | 146 |
import eu.etaxonomy.taxeditor.ui.section.classification.TaxonNodeDetailSection; |
147 |
import eu.etaxonomy.taxeditor.ui.section.common.ReferencedEntityDetailSection; |
|
148 |
import eu.etaxonomy.taxeditor.ui.section.common.RefereneEntityDetailElement; |
|
146 | 149 |
import eu.etaxonomy.taxeditor.ui.section.description.DerivedUnitElement; |
147 | 150 |
import eu.etaxonomy.taxeditor.ui.section.description.DescribedSpecimenSection; |
148 | 151 |
import eu.etaxonomy.taxeditor.ui.section.description.DescriptionDetailElement; |
... | ... | |
256 | 259 |
import eu.etaxonomy.taxeditor.ui.section.taxon.TaxonBaseDetailElement; |
257 | 260 |
import eu.etaxonomy.taxeditor.ui.section.taxon.TaxonBaseDetailSection; |
258 | 261 |
import eu.etaxonomy.taxeditor.ui.section.taxon.TaxonDetailElement; |
262 |
import eu.etaxonomy.taxeditor.ui.section.taxon.TaxonRelationshipDetailElement; |
|
263 |
import eu.etaxonomy.taxeditor.ui.section.taxon.TaxonRelationshipDetailSection; |
|
259 | 264 |
import eu.etaxonomy.taxeditor.ui.section.user.GroupsByUserDetailElement; |
260 | 265 |
import eu.etaxonomy.taxeditor.ui.section.user.GroupsByUserDetailSection; |
261 | 266 |
import eu.etaxonomy.taxeditor.ui.section.user.UserDetailElement; |
... | ... | |
310 | 315 |
import eu.etaxonomy.taxeditor.ui.term.StageComboElement; |
311 | 316 |
import eu.etaxonomy.taxeditor.ui.term.StateComboElement; |
312 | 317 |
import eu.etaxonomy.taxeditor.ui.term.StatisticalMeasureComboElement; |
318 |
import eu.etaxonomy.taxeditor.ui.term.TaxonRelationshipTypeComboElement; |
|
313 | 319 |
|
314 | 320 |
/** |
315 | 321 |
* <p> |
... | ... | |
957 | 963 |
} |
958 | 964 |
|
959 | 965 |
public static enum TermComboType { |
960 |
EXTENSIONTYPE, LANGUAGE, MARKERTYPE, NOMENCLATURALSTATUSTYPE, RANK, RIGHTSTYPE, NAMERELATIONSHIP, NAMEDAREATYPE, PRESENCEABSENCESTATUS, ANNOTATIONTYPE, NAMETYPEDESIGNATIONSTATUS, SPECIMENTYPEDESIGNATIONSTATUS, SEX, STAGE, PRESERVATION_METHOD, MEASUREMENT_UNIT, STATE, MODIFIER, STATISTICAL_MEASURE, SCOPE, EMPTY, DETERMINATION_MODIFIER, REFERENCE_SYSTEM |
|
966 |
EXTENSIONTYPE, |
|
967 |
LANGUAGE, |
|
968 |
MARKERTYPE, |
|
969 |
NOMENCLATURALSTATUSTYPE, |
|
970 |
RANK, |
|
971 |
RIGHTSTYPE, |
|
972 |
NAMERELATIONSHIP, |
|
973 |
NAMEDAREATYPE, |
|
974 |
PRESENCEABSENCESTATUS, |
|
975 |
ANNOTATIONTYPE, |
|
976 |
NAMETYPEDESIGNATIONSTATUS, |
|
977 |
SPECIMENTYPEDESIGNATIONSTATUS, |
|
978 |
SEX, |
|
979 |
STAGE, |
|
980 |
PRESERVATION_METHOD, |
|
981 |
MEASUREMENT_UNIT, |
|
982 |
STATE, |
|
983 |
MODIFIER, |
|
984 |
STATISTICAL_MEASURE, |
|
985 |
SCOPE, |
|
986 |
EMPTY, |
|
987 |
DETERMINATION_MODIFIER, |
|
988 |
REFERENCE_SYSTEM, |
|
989 |
TAXON_RELATIONSHIP_TYPE_INVERSE_CONTAINER |
|
961 | 990 |
} |
962 | 991 |
|
963 | 992 |
/** |
... | ... | |
1084 | 1113 |
element = new ReferenceSystemComboElement(this, parentElement, |
1085 | 1114 |
labelString, (ReferenceSystem) selection, style); |
1086 | 1115 |
break; |
1116 |
case TAXON_RELATIONSHIP_TYPE_INVERSE_CONTAINER: |
|
1117 |
element = new TaxonRelationshipTypeComboElement(this, parentElement, labelString, (TaxonRelationshipTypeInverseContainer) selection, style); |
|
1118 |
break; |
|
1087 | 1119 |
} |
1088 | 1120 |
|
1089 | 1121 |
adapt(element); |
... | ... | |
1671 | 1703 |
HYBRID, |
1672 | 1704 |
USER, |
1673 | 1705 |
GROUP, |
1674 |
DETERMINATION |
|
1706 |
DETERMINATION, |
|
1707 |
TAXON_RELATIONSHIP, |
|
1708 |
REFERENCED_ENTITY |
|
1675 | 1709 |
} |
1676 | 1710 |
|
1677 | 1711 |
/** |
... | ... | |
1817 | 1851 |
case DETERMINATION: |
1818 | 1852 |
section = new DeterminationDetailSection(this, conversation, parentElement, |
1819 | 1853 |
selectionProvider, style); |
1854 |
break; |
|
1855 |
case TAXON_RELATIONSHIP: |
|
1856 |
section = new TaxonRelationshipDetailSection(this, conversation, parentElement, |
|
1857 |
selectionProvider, style); |
|
1858 |
break; |
|
1859 |
case REFERENCED_ENTITY: |
|
1860 |
section = new ReferencedEntityDetailSection(this, conversation, parentElement, |
|
1861 |
selectionProvider, style); |
|
1862 |
break; |
|
1820 | 1863 |
} |
1821 | 1864 |
|
1822 | 1865 |
if (section == null) { |
... | ... | |
1935 | 1978 |
case DETERMINATION: |
1936 | 1979 |
element = new DeterminationDetailElement(this, parentElement); |
1937 | 1980 |
break; |
1981 |
case TAXON_RELATIONSHIP: |
|
1982 |
element = new TaxonRelationshipDetailElement(this, parentElement); |
|
1983 |
break; |
|
1984 |
case REFERENCED_ENTITY: |
|
1985 |
element = new RefereneEntityDetailElement(this, parentElement); |
|
1986 |
break; |
|
1938 | 1987 |
} |
1939 | 1988 |
|
1940 | 1989 |
if (element == null) { |
Also available in: Unified diff
Taxon Relationship type is now editable in details view