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 / occurrence / EmptySection.java
1 /**
2 * Copyright (C) 2014 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.occurrence;
10
11 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
12 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
13 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
14 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
15
16 /**
17 * @author pplitzner
18 * @date 27.01.2014
19 *
20 */
21 public class EmptySection extends AbstractCdmDetailSection<Object> {
22
23 /**
24 * <p>Constructor for DerivedUnitFacadeDetailSection.</p>
25 *
26 * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
27 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
28 * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
29 * @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object.
30 * @param style a int.
31 */
32 public EmptySection(CdmFormFactory formFactory, ICdmFormElement parentElement, int style) {
33 super(formFactory, null, parentElement, null, style);
34 }
35
36 /** {@inheritDoc} */
37 @Override
38 public String getHeading() {
39 return "No details view implemented for this element";
40 }
41
42 /* (non-Javadoc)
43 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
44 */
45 @Override
46 protected AbstractCdmDetailElement<Object> createCdmDetailElement(AbstractCdmDetailSection<Object> parentElement, int style) {
47 return formFactory.createEmptyElement(parentElement, null);
48 }
49 }