ref #6190 removing svn property place holder in first line of code - java files
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / vocabulary / NamedAreaDetailSection.java
1 /**
2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * 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.NamedArea;
15 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
16 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
17 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
18 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
19
20 /**
21 * @author l.morris
22 * @date 20 Dec 2011
23 *
24 */
25 public class NamedAreaDetailSection extends AbstractCdmDetailSection<NamedArea> {
26
27 /**
28 * @param formFactory
29 * @param conversation
30 * @param parentElement
31 * @param selectionProvider
32 * @param style
33 */
34 public NamedAreaDetailSection(CdmFormFactory formFactory,
35 ConversationHolder conversation, ICdmFormElement parentElement,
36 ISelectionProvider selectionProvider, int style) {
37 super(formFactory, conversation, parentElement, selectionProvider, style);
38
39 }
40
41 /* (non-Javadoc)
42 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getHeading()
43 */
44 @Override
45 public String getHeading() {
46
47 return "Defined Term: "+ (getEntity() != null ? getEntity().getLabel() : "");
48 }
49
50 /* (non-Javadoc)
51 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
52 */
53 @Override
54 protected AbstractCdmDetailElement<NamedArea> createCdmDetailElement(AbstractCdmDetailSection<NamedArea> parentElement, int style) {
55 return formFactory.createNamedAreaDetailElement(parentElement);
56 }
57
58 }