Project

General

Profile

Download (2.31 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2007 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

    
11
package eu.etaxonomy.taxeditor.ui.section.occurrence;
12

    
13
import org.eclipse.jface.viewers.ISelectionProvider;
14

    
15
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
16
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
17
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
18
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
19
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
20
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
21

    
22
/**
23
 * @author n.hoffmann
24
 * @created Dec 16, 2010
25
 * @version 1.0
26
 */
27
public class DerivedUnitGeneralDetailSection extends AbstractCdmDetailSection<DerivedUnitFacade> implements IDerivedUnitFacadeDetailSection{
28

    
29
    //TODO for DerivateEditor do not use facade anymore to avoid this special case handling #4539
30
	private DerivedUnitGeneralDetailElement derivedUnitGeneralDetailElement;
31

    
32
    /**
33
	 * @param formFactory
34
	 * @param conversation
35
	 * @param parentElement
36
	 * @param selectionProvider
37
	 * @param style
38
	 */
39
	public DerivedUnitGeneralDetailSection(CdmFormFactory formFactory,
40
			ConversationHolder conversation, ICdmFormElement parentElement,
41
			ISelectionProvider selectionProvider, int style) {
42
		super(formFactory, conversation, parentElement, selectionProvider, style);
43
	}
44

    
45

    
46
	/* (non-Javadoc)
47
	 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
48
	 */
49
	@Override
50
	public String getHeading() {
51
		return "General";
52
	}
53

    
54
	/* (non-Javadoc)
55
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
56
	 */
57
	@Override
58
	protected AbstractCdmDetailElement<DerivedUnitFacade> createCdmDetailElement(AbstractCdmDetailSection<DerivedUnitFacade> parentElement, int style) {
59
	    derivedUnitGeneralDetailElement = formFactory.createDerivedUnitGeneralDetailElement(parentElement);
60
        return derivedUnitGeneralDetailElement;
61
	}
62

    
63
	public void setShowOnlyDerivedUnitData(boolean showOnlyDerivedUnitData){
64
	    derivedUnitGeneralDetailElement.setShowOnlyDerivedUnitData(showOnlyDerivedUnitData);
65
	}
66

    
67
}
(11-11/36)