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