Project

General

Profile

« Previous | Next » 

Revision 0caafa75

Added by Andreas Müller over 1 year ago

ref #10186 further remove ConversationHolder and cleanup

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/SpecimenOrObservationTypeSelectionDialog.java
1
//$Id$
2

  
1
/**
2
* Copyright (C) 2007 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
*/
3 9
package eu.etaxonomy.taxeditor.ui.dialog.selection;
4 10

  
5 11
import java.util.ArrayList;
......
7 13

  
8 14
import org.eclipse.swt.widgets.Shell;
9 15

  
10
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
11 16
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationType;
12 17
import eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard;
13 18

  
14 19
/**
15
* <p>OriginalSourceTypeSelectionDialog class.</p>
16
*
17 20
* @author c.mathew
18 21
* @created 18.07.2013
19
* @version 1.0
20 22
*/
21 23
public class SpecimenOrObservationTypeSelectionDialog extends
22 24
		AbstractFilteredCdmEnumSelectionDialog<SpecimenOrObservationType> {
23 25

  
24
	/**
25
	 * <p>select</p>
26
	 *
27
	 * @param shell a {@link org.eclipse.swt.widgets.Shell} object.
28
	 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
29
	 * @return a {@link eu.etaxonomy.cdm.model.reference.OriginalSourceType} object.
30
	 */
31
	public static SpecimenOrObservationType select(Shell shell, ConversationHolder conversation){
26
	public static SpecimenOrObservationType select(Shell shell){
32 27
		SpecimenOrObservationTypeSelectionDialog dialog =
33 28
				new SpecimenOrObservationTypeSelectionDialog(shell,
34 29
						"Choose Specimen / Observation Type",
......
37 32
		return getSelectionFromDialog(dialog);
38 33
	}
39 34

  
40
	/**
41
	 * <p>Constructor for FilteredDerivedUnitSelectionDialog.</p>
42
	 *
43
	 * @param shell a {@link org.eclipse.swt.widgets.Shell} object.
44
	 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
45
	 * @param title a {@link java.lang.String} object.
46
	 * @param multi a boolean.
47
	 * @param settings a {@link java.lang.String} object.
48
	 */
49 35
	protected SpecimenOrObservationTypeSelectionDialog(Shell shell,
50 36
			String title,
51 37
			boolean multi,
......
53 39
		super(shell, title, multi, settings, SpecimenOrObservationType.Unknown);
54 40
	}
55 41

  
56

  
57
	/** {@inheritDoc} */
58 42
	@Override
59 43
	protected void initModel() {
60 44
		model = new ArrayList<SpecimenOrObservationType>();
61 45
		model.addAll(EnumSet.allOf(SpecimenOrObservationType.class));
62 46
	}
63 47

  
64
	/** {@inheritDoc} */
65 48
	@Override
66 49
	protected AbstractNewEntityWizard getNewEntityWizard(String parameter) {
67 50
		return null;
68 51
	}
69 52

  
70
	/** {@inheritDoc} */
71 53
	@Override
72 54
	protected String getNewWizardLinkText() {
73 55
		return null;
74 56
	}
75
}
57
}

Also available in: Unified diff