1
|
/**
|
2
|
* Copyright (C) 2020 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.reference;
|
10
|
|
11
|
import org.eclipse.jface.viewers.ISelectionProvider;
|
12
|
|
13
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
14
|
import eu.etaxonomy.cdm.model.reference.OriginalSourceBase;
|
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 k.luther
|
22
|
* @since Jul 1, 2020
|
23
|
*/
|
24
|
public class OriginalSourceAdvancedSection extends AbstractCdmDetailSection<OriginalSourceBase> {
|
25
|
|
26
|
/**
|
27
|
* @param formFactory
|
28
|
* @param conversation
|
29
|
* @param parentElement
|
30
|
* @param selectionProvider
|
31
|
* @param style
|
32
|
*/
|
33
|
public OriginalSourceAdvancedSection(CdmFormFactory formFactory, ConversationHolder conversation,
|
34
|
ICdmFormElement parentElement, ISelectionProvider selectionProvider, int style) {
|
35
|
super(formFactory, conversation, parentElement, selectionProvider, style);
|
36
|
|
37
|
|
38
|
}
|
39
|
|
40
|
@Override
|
41
|
protected AbstractCdmDetailElement<OriginalSourceBase> createCdmDetailElement(
|
42
|
AbstractCdmDetailSection<OriginalSourceBase> parentElement, int style) {
|
43
|
|
44
|
return new AdvancedSourceElement(getFormFactory(), parentElement);
|
45
|
}
|
46
|
|
47
|
@Override
|
48
|
public String getHeading() {
|
49
|
|
50
|
return "Advanced";
|
51
|
}
|
52
|
|
53
|
}
|