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/classification/ClassificationDetailSection.java
1 1
// $Id$
2 2
/**
3 3
* Copyright (C) 2007 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
*/
......
16 16
import eu.etaxonomy.cdm.model.taxon.Classification;
17 17
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
18 18
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
19
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
19
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
20 20
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
21 21

  
22 22
/**
......
27 27
 * @version 1.0
28 28
 */
29 29
public class ClassificationDetailSection extends AbstractCdmDetailSection<Classification> {
30
	
30

  
31 31
	/**
32 32
	 * <p>Constructor for ClassificationDetailSection.</p>
33 33
	 *
......
42 42
			ISelectionProvider selectionProvider, int style) {
43 43
		super(formFactory, conversation, parentElement, selectionProvider, style);
44 44
	}
45
	
45

  
46 46
	/* (non-Javadoc)
47 47
	 * @see eu.etaxonomy.taxeditor.forms.IEnableableFormElement#setEnabled(boolean)
48 48
	 */
......
53 53
	}
54 54

  
55 55
	/* (non-Javadoc)
56
	 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getDetailType()
56
	 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
57 57
	 */
58 58
	/** {@inheritDoc} */
59 59
	@Override
60
	protected DetailType getDetailType() {
60
	public String getHeading() {
61 61
		return null;
62 62
	}
63 63

  
64 64
	/* (non-Javadoc)
65
	 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
65
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
66 66
	 */
67
	/** {@inheritDoc} */
68 67
	@Override
69
	public String getHeading() {
70
		return null;
68
	protected AbstractCdmDetailElement<Classification> createCdmDetailElement(AbstractCdmDetailSection<Classification> parentElement, int style) {
69
	    return formFactory.createClassificationDetailElement(parentElement);
71 70
	}
72 71
}

Also available in: Unified diff