Project

General

Profile

Revision 9c1f8392

ID9c1f8392f42669e9195d33958b9be9a775520cdc
Parent b393d65c
Child 4eb4e01e

Added by Patrick Plitzner over 1 year ago

ref #6746 Refactor method return parameter

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/AbstractCdmDetailSection.java
9 9

  
10 10
package eu.etaxonomy.taxeditor.ui.section;
11 11

  
12
import java.util.ArrayList;
13
import java.util.Collection;
14

  
12 15
import org.eclipse.jface.action.ToolBarManager;
13 16
import org.eclipse.jface.viewers.ISelectionProvider;
14 17
import org.eclipse.swt.SWT;
......
40 43
 * @author n.hoffmann
41 44
 * @created Feb 26, 2010
42 45
 */
43
public abstract class AbstractCdmDetailSection<ENTITY> 
44
			extends AbstractFormSection<ENTITY> 
46
public abstract class AbstractCdmDetailSection<ENTITY>
47
			extends AbstractFormSection<ENTITY>
45 48
			implements IEnableableFormElement, IExpansionListener {
46 49

  
47
	protected ICdmDetailElement<ENTITY> detailElement;
50
	protected AbstractCdmDetailElement<ENTITY> detailElement;
48 51

  
49 52
	public AbstractCdmDetailSection(CdmFormFactory formFactory,
50 53
			ConversationHolder conversation, ICdmFormElement parentElement,
......
89 92
	    createControlsByType(formElement, null, style);
90 93
	}
91 94

  
92
	protected abstract ICdmDetailElement<ENTITY> createCdmDetailElement(AbstractCdmDetailSection<ENTITY> parentElement, int style);
95
	protected abstract AbstractCdmDetailElement<ENTITY> createCdmDetailElement(AbstractCdmDetailSection<ENTITY> parentElement, int style);
93 96

  
94
	protected ICdmDetailElement<ENTITY> createCdmDetailElementByType(AbstractCdmDetailSection<ENTITY> parentElement, Class<ENTITY> entityClass, int style){
97
	protected AbstractCdmDetailElement<ENTITY> createCdmDetailElementByType(AbstractCdmDetailSection<ENTITY> parentElement, Class<ENTITY> entityClass, int style){
95 98
	    return createCdmDetailElement(parentElement, style);
96 99
	}
97 100

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/feature/CharacterDetailSection.java
14 14
import eu.etaxonomy.cdm.model.description.Character;
15 15
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
16 16
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
17
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
17 18
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
18
import eu.etaxonomy.taxeditor.ui.section.ICdmDetailElement;
19 19

  
20 20
/**
21 21
 *
......
40 40
     * {@inheritDoc}
41 41
     */
42 42
    @Override
43
    protected ICdmDetailElement<Character> createCdmDetailElement(AbstractCdmDetailSection<Character> parentElement,
43
    protected AbstractCdmDetailElement<Character> createCdmDetailElement(AbstractCdmDetailSection<Character> parentElement,
44 44
            int style) {
45 45
        return formFactory.createCharacterDetailElement(parentElement, style);
46 46
    }
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/feature/FeatureNodeDetailSection.java
14 14
import eu.etaxonomy.cdm.model.description.FeatureNode;
15 15
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
16 16
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
17
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
17 18
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
18
import eu.etaxonomy.taxeditor.ui.section.ICdmDetailElement;
19 19

  
20 20
/**
21 21
 *
......
40 40
     * {@inheritDoc}
41 41
     */
42 42
    @Override
43
    protected ICdmDetailElement<FeatureNode> createCdmDetailElement(AbstractCdmDetailSection<FeatureNode> parentElement,
43
    protected AbstractCdmDetailElement<FeatureNode> createCdmDetailElement(AbstractCdmDetailSection<FeatureNode> parentElement,
44 44
            int style) {
45 45
        return formFactory.createFeatureNodeDetailElement(parentElement, style);
46 46
    }
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/feature/FeatureTreeDetailSection.java
14 14
import eu.etaxonomy.cdm.model.description.FeatureTree;
15 15
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
16 16
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
17
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
17 18
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
18
import eu.etaxonomy.taxeditor.ui.section.ICdmDetailElement;
19 19

  
20 20
/**
21 21
 *
......
40 40
     * {@inheritDoc}
41 41
     */
42 42
    @Override
43
    protected ICdmDetailElement<FeatureTree> createCdmDetailElement(AbstractCdmDetailSection<FeatureTree> parentElement,
43
    protected AbstractCdmDetailElement<FeatureTree> createCdmDetailElement(AbstractCdmDetailSection<FeatureTree> parentElement,
44 44
            int style) {
45 45
        return formFactory.createFeatureTreeDetailElement(parentElement, style);
46 46
    }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)