Project

General

Profile

« Previous | Next » 

Revision 139902da

Added by Patrick Plitzner almost 11 years ago

  • completely removed DetailType enum and all its uses

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonRelationshipDetailSection.java
1 1
// $Id$
2 2
/**
3 3
* Copyright (C) 2009 EDIT
4
* European Distributed Institute of Taxonomy 
4
* European Distributed Institute of Taxonomy
5 5
* http://www.e-taxonomy.eu
6
* 
6
*
7 7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8 8
* See LICENSE.TXT at the top of this package for the full license terms.
9 9
*/
......
15 15
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
16 16
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
17 17
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
18
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
18
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
19 19
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
20 20

  
21 21
/**
......
32 32
	}
33 33

  
34 34
	@Override
35
	protected DetailType getDetailType() {
36
		return DetailType.TAXON_RELATIONSHIP;
35
	public String getHeading() {
36
		return "Taxon Relationship";
37 37
	}
38 38

  
39
	/* (non-Javadoc)
40
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
41
	 */
39 42
	@Override
40
	public String getHeading() {
41
		return "Taxon Relationship";
43
	protected AbstractCdmDetailElement<TaxonRelationship> createCdmDetailElement(AbstractCdmDetailSection<TaxonRelationship> parentElement, int style) {
44
	    return formFactory.createTaxonRelationshipDetailElement(parentElement);
42 45
	}
43 46

  
44 47
}

Also available in: Unified diff