Revision 0caafa75
Added by Andreas Müller over 1 year ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/OriginalSourceTypeSelectionDialog.java | ||
---|---|---|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.taxeditor.ui.dialog.selection; |
11 | 10 |
|
12 | 11 |
import java.util.ArrayList; |
... | ... | |
14 | 13 |
|
15 | 14 |
import org.eclipse.swt.widgets.Shell; |
16 | 15 |
|
17 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
|
18 | 16 |
import eu.etaxonomy.cdm.model.reference.OriginalSourceType; |
19 | 17 |
import eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard; |
20 | 18 |
|
21 | 19 |
/** |
22 |
* <p>OriginalSourceTypeSelectionDialog class.</p> |
|
23 |
* |
|
24 | 20 |
* @author c.mathew |
25 | 21 |
* @created 18.07.2013 |
26 |
* @version 1.0 |
|
27 | 22 |
*/ |
28 | 23 |
public class OriginalSourceTypeSelectionDialog extends |
29 | 24 |
AbstractFilteredCdmEnumSelectionDialog<OriginalSourceType> { |
30 | 25 |
|
31 |
/** |
|
32 |
* <p>select</p> |
|
33 |
* |
|
34 |
* @param shell a {@link org.eclipse.swt.widgets.Shell} object. |
|
35 |
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object. |
|
36 |
* @return a {@link eu.etaxonomy.cdm.model.reference.OriginalSourceType} object. |
|
37 |
*/ |
|
38 | 26 |
public static OriginalSourceType select(Shell shell){ |
39 | 27 |
OriginalSourceTypeSelectionDialog dialog = |
40 |
new OriginalSourceTypeSelectionDialog(shell,
|
|
28 |
new OriginalSourceTypeSelectionDialog(shell, |
|
41 | 29 |
"Choose Original Source Type", |
42 | 30 |
false, |
43 | 31 |
OriginalSourceTypeSelectionDialog.class.getCanonicalName()); |
44 | 32 |
return getSelectionFromDialog(dialog); |
45 | 33 |
} |
46 | 34 |
|
47 |
/** |
|
48 |
* <p>Constructor for FilteredDerivedUnitSelectionDialog.</p> |
|
49 |
* |
|
50 |
* @param shell a {@link org.eclipse.swt.widgets.Shell} object. |
|
51 |
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object. |
|
52 |
* @param title a {@link java.lang.String} object. |
|
53 |
* @param multi a boolean. |
|
54 |
* @param settings a {@link java.lang.String} object. |
|
55 |
*/ |
|
56 | 35 |
protected OriginalSourceTypeSelectionDialog(Shell shell, |
57 | 36 |
String title, |
58 | 37 |
boolean multi, |
... | ... | |
60 | 39 |
super(shell, title, multi, settings, OriginalSourceType.PrimaryTaxonomicSource); |
61 | 40 |
} |
62 | 41 |
|
63 |
|
|
64 |
/** {@inheritDoc} */ |
|
65 | 42 |
@Override |
66 | 43 |
protected void initModel() { |
67 |
model = new ArrayList<OriginalSourceType>();
|
|
44 |
model = new ArrayList<>(); |
|
68 | 45 |
model.addAll(EnumSet.allOf(OriginalSourceType.class)); |
69 | 46 |
} |
70 | 47 |
|
71 |
/** {@inheritDoc} */ |
|
72 | 48 |
@Override |
73 | 49 |
protected AbstractNewEntityWizard getNewEntityWizard(String parameter) { |
74 | 50 |
return null; |
75 | 51 |
} |
76 | 52 |
|
77 |
/** {@inheritDoc} */ |
|
78 | 53 |
@Override |
79 | 54 |
protected String getNewWizardLinkText() { |
80 | 55 |
return null; |
81 | 56 |
} |
82 |
} |
|
57 |
} |
Also available in: Unified diff
ref #10186 further remove ConversationHolder and cleanup