1 |
b9a0d300
|
l.morris
|
/**
|
2 |
|
|
* Copyright (C) 2009 EDIT
|
3 |
139902da
|
Patric Plitzner
|
* European Distributed Institute of Taxonomy
|
4 |
b9a0d300
|
l.morris
|
* http://www.e-taxonomy.eu
|
5 |
139902da
|
Patric Plitzner
|
*
|
6 |
b9a0d300
|
l.morris
|
* 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 |
|
|
package eu.etaxonomy.taxeditor.ui.section.vocabulary;
|
10 |
|
|
|
11 |
|
|
import org.eclipse.jface.viewers.ISelectionProvider;
|
12 |
|
|
|
13 |
|
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
14 |
|
|
import eu.etaxonomy.cdm.model.location.NamedAreaLevel;
|
15 |
78222507
|
n.hoffmann
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
16 |
dacb59c9
|
Patric Plitzner
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
17 |
139902da
|
Patric Plitzner
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
18 |
b9a0d300
|
l.morris
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
|
19 |
|
|
|
20 |
|
|
/**
|
21 |
|
|
* @author l.morris
|
22 |
|
|
* @date 4 Jan 2012
|
23 |
|
|
*
|
24 |
|
|
*/
|
25 |
|
|
public class NamedAreaLevelDetailSection extends AbstractCdmDetailSection<NamedAreaLevel> {
|
26 |
|
|
|
27 |
|
|
/**
|
28 |
|
|
* @param formFactory
|
29 |
|
|
* @param parentElement
|
30 |
|
|
* @param style
|
31 |
|
|
*/
|
32 |
|
|
public NamedAreaLevelDetailSection(CdmFormFactory formFactory,
|
33 |
|
|
ConversationHolder conversation, ICdmFormElement parentElement,
|
34 |
|
|
ISelectionProvider selectionProvider, int style) {
|
35 |
|
|
super(formFactory, conversation, parentElement, selectionProvider, style);
|
36 |
|
|
}
|
37 |
|
|
|
38 |
|
|
/* (non-Javadoc)
|
39 |
139902da
|
Patric Plitzner
|
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getHeading()
|
40 |
b9a0d300
|
l.morris
|
*/
|
41 |
|
|
@Override
|
42 |
139902da
|
Patric Plitzner
|
public String getHeading() {
|
43 |
|
|
return "Defined Term: "+ (getEntity() != null ? getEntity().getLabel() : "");
|
44 |
b9a0d300
|
l.morris
|
}
|
45 |
|
|
|
46 |
|
|
/* (non-Javadoc)
|
47 |
139902da
|
Patric Plitzner
|
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
|
48 |
b9a0d300
|
l.morris
|
*/
|
49 |
|
|
@Override
|
50 |
139902da
|
Patric Plitzner
|
protected AbstractCdmDetailElement<NamedAreaLevel> createCdmDetailElement(AbstractCdmDetailSection<NamedAreaLevel> parentElement, int style) {
|
51 |
|
|
return formFactory.createNamedAreaLevelElement(parentElement);
|
52 |
b9a0d300
|
l.morris
|
}
|
53 |
|
|
|
54 |
|
|
}
|