1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2007 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
|
11
|
package eu.etaxonomy.taxeditor.ui.section.classification;
|
12
|
|
13
|
import org.eclipse.jface.viewers.ISelectionProvider;
|
14
|
|
15
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
16
|
import eu.etaxonomy.cdm.model.taxon.Classification;
|
17
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
18
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
19
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
20
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
|
21
|
|
22
|
/**
|
23
|
* <p>ClassificationDetailSection class.</p>
|
24
|
*
|
25
|
* @author n.hoffmann
|
26
|
* @created Sep 27, 2010
|
27
|
* @version 1.0
|
28
|
*/
|
29
|
public class ClassificationDetailSection extends AbstractCdmDetailSection<Classification> {
|
30
|
|
31
|
/**
|
32
|
* <p>Constructor for ClassificationDetailSection.</p>
|
33
|
*
|
34
|
* @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
|
35
|
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
|
36
|
* @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
|
37
|
* @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object.
|
38
|
* @param style a int.
|
39
|
*/
|
40
|
public ClassificationDetailSection(CdmFormFactory formFactory,
|
41
|
ConversationHolder conversation, ICdmFormElement parentElement,
|
42
|
ISelectionProvider selectionProvider, int style) {
|
43
|
super(formFactory, conversation, parentElement, selectionProvider, style);
|
44
|
}
|
45
|
|
46
|
/* (non-Javadoc)
|
47
|
* @see eu.etaxonomy.taxeditor.forms.IEnableableFormElement#setEnabled(boolean)
|
48
|
*/
|
49
|
/** {@inheritDoc} */
|
50
|
@Override
|
51
|
public void setEnabled(boolean enabled) {
|
52
|
|
53
|
}
|
54
|
|
55
|
/* (non-Javadoc)
|
56
|
* @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
|
57
|
*/
|
58
|
/** {@inheritDoc} */
|
59
|
@Override
|
60
|
public String getHeading() {
|
61
|
return null;
|
62
|
}
|
63
|
|
64
|
/* (non-Javadoc)
|
65
|
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
|
66
|
*/
|
67
|
@Override
|
68
|
protected AbstractCdmDetailElement<Classification> createCdmDetailElement(AbstractCdmDetailSection<Classification> parentElement, int style) {
|
69
|
return formFactory.createClassificationDetailElement(parentElement);
|
70
|
}
|
71
|
}
|