Revision 139902da
Added by Patrick Plitzner almost 11 years ago
- completely removed DetailType enum and all its uses
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescriptionDetailSection.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 |
*/ |
... | ... | |
15 | 15 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
16 | 16 |
import eu.etaxonomy.cdm.model.description.DescriptionBase; |
17 | 17 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
18 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType; |
|
19 | 18 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
19 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement; |
|
20 | 20 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection; |
21 | 21 |
|
22 | 22 |
/** |
... | ... | |
40 | 40 |
public DescriptionDetailSection(CdmFormFactory cdmFormFactory, ConversationHolder conversation, |
41 | 41 |
ICdmFormElement parentElement, ISelectionProvider selectionProvider, int style) { |
42 | 42 |
super(cdmFormFactory, conversation, parentElement, selectionProvider, style); |
43 |
|
|
43 |
|
|
44 | 44 |
} |
45 |
|
|
45 |
|
|
46 | 46 |
/** {@inheritDoc} */ |
47 | 47 |
@Override |
48 | 48 |
public String getHeading() { |
49 | 49 |
return "Description"; |
50 | 50 |
} |
51 | 51 |
|
52 |
/** {@inheritDoc} */ |
|
52 |
/* (non-Javadoc) |
|
53 |
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int) |
|
54 |
*/ |
|
53 | 55 |
@Override |
54 |
protected DetailType getDetailType() {
|
|
55 |
return DetailType.DESCRIPTION;
|
|
56 |
protected AbstractCdmDetailElement<DescriptionBase> createCdmDetailElement(AbstractCdmDetailSection<DescriptionBase> parentElement, int style) {
|
|
57 |
return formFactory.createDescriptionDetailElement(parentElement, style);
|
|
56 | 58 |
} |
57 | 59 |
} |
Also available in: Unified diff