1 |
87f9934d
|
n.hoffmann
|
/**
|
2 |
|
|
* Copyright (C) 2007 EDIT
|
3 |
fd6c7492
|
Patric Plitzner
|
* European Distributed Institute of Taxonomy
|
4 |
87f9934d
|
n.hoffmann
|
* http://www.e-taxonomy.eu
|
5 |
fd6c7492
|
Patric Plitzner
|
*
|
6 |
87f9934d
|
n.hoffmann
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7 |
|
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8 |
|
|
*/
|
9 |
|
|
|
10 |
|
|
package eu.etaxonomy.taxeditor.ui.section.occurrence;
|
11 |
|
|
|
12 |
|
|
import org.eclipse.jface.viewers.ISelectionProvider;
|
13 |
|
|
|
14 |
|
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
15 |
|
|
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
|
16 |
78222507
|
n.hoffmann
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
17 |
dacb59c9
|
Patric Plitzner
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
18 |
b0ce5b17
|
Patric Plitzner
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
19 |
87f9934d
|
n.hoffmann
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
|
20 |
|
|
|
21 |
|
|
/**
|
22 |
|
|
* @author n.hoffmann
|
23 |
|
|
* @created May 11, 2011
|
24 |
|
|
* @version 1.0
|
25 |
|
|
*/
|
26 |
|
|
public class DeterminationDetailSection extends AbstractCdmDetailSection<DerivedUnitFacade> implements IDerivedUnitFacadeDetailSection {
|
27 |
|
|
|
28 |
|
|
/**
|
29 |
|
|
* @param formFactory
|
30 |
|
|
* @param conversation
|
31 |
|
|
* @param parentElement
|
32 |
|
|
* @param selectionProvider
|
33 |
|
|
* @param style
|
34 |
|
|
*/
|
35 |
|
|
public DeterminationDetailSection(CdmFormFactory formFactory,
|
36 |
|
|
ConversationHolder conversation, ICdmFormElement parentElement,
|
37 |
|
|
ISelectionProvider selectionProvider, int style) {
|
38 |
|
|
super(formFactory, conversation, parentElement, selectionProvider, style);
|
39 |
|
|
}
|
40 |
|
|
|
41 |
|
|
/* (non-Javadoc)
|
42 |
|
|
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getHeading()
|
43 |
|
|
*/
|
44 |
|
|
@Override
|
45 |
|
|
public String getHeading() {
|
46 |
1a696a99
|
Patrick Plitzner
|
String sectionTitle = "Determinations";
|
47 |
|
|
if(getEntity()!=null && getEntity().getDeterminations().size()>0){
|
48 |
|
|
return sectionTitle+" +";
|
49 |
|
|
}
|
50 |
|
|
return sectionTitle;
|
51 |
fd6c7492
|
Patric Plitzner
|
}
|
52 |
|
|
|
53 |
|
|
/* (non-Javadoc)
|
54 |
|
|
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
|
55 |
|
|
*/
|
56 |
|
|
@Override
|
57 |
b0ce5b17
|
Patric Plitzner
|
protected AbstractCdmDetailElement<DerivedUnitFacade> createCdmDetailElement(AbstractCdmDetailSection<DerivedUnitFacade> parentElement, int style) {
|
58 |
fd6c7492
|
Patric Plitzner
|
return formFactory.createDeterminationDetailElement(parentElement);
|
59 |
87f9934d
|
n.hoffmann
|
}
|
60 |
|
|
|
61 |
|
|
}
|