3 * Copyright (C) 2014 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
;
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
;
22 public class EmptySection
extends AbstractCdmDetailSection
<Object
> {
25 * <p>Constructor for DerivedUnitFacadeDetailSection.</p>
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.
33 public EmptySection(CdmFormFactory formFactory
, ICdmFormElement parentElement
, int style
) {
34 super(formFactory
, null, parentElement
, null, style
);
39 public String
getHeading() {
40 return "No details view implemented for this element";
44 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
47 protected AbstractCdmDetailElement
<Object
> createCdmDetailElement(AbstractCdmDetailSection
<Object
> parentElement
, int style
) {
48 return formFactory
.createEmptyElement(parentElement
, null);