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