Revision 0caafa75
Added by Andreas Müller over 1 year ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/ClassificationSelectionDialog.java | ||
---|---|---|
29 | 29 |
public class ClassificationSelectionDialog extends |
30 | 30 |
AbstractFilteredCdmResourceSelectionDialog<Classification> { |
31 | 31 |
|
32 |
/** |
|
33 |
* <p> |
|
34 |
* select |
|
35 |
* </p> |
|
36 |
* |
|
37 |
* @param shell |
|
38 |
* a {@link org.eclipse.swt.widgets.Shell} object. |
|
39 |
* @param conversation |
|
40 |
* a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} |
|
41 |
* object. |
|
42 |
* @param curentSelection |
|
43 |
* @return a {@link eu.etaxonomy.cdm.model.taxon.TaxonomicTree} object. |
|
44 |
*/ |
|
45 |
public static Classification select(Shell shell,//ConversationHolder conversation, |
|
32 |
public static Classification select(Shell shell, |
|
46 | 33 |
Classification curentSelection) { |
47 |
ClassificationSelectionDialog dialog = new ClassificationSelectionDialog(shell, //conversation,
|
|
34 |
ClassificationSelectionDialog dialog = new ClassificationSelectionDialog(shell, |
|
48 | 35 |
"Choose a Classification", false, "", null); |
49 | 36 |
return getSelectionFromDialog(dialog); |
50 | 37 |
} |
51 | 38 |
|
52 |
/** |
|
53 |
* <p> |
|
54 |
* Constructor for FilteredClassificationSelectionDialog. |
|
55 |
* </p> |
|
56 |
* |
|
57 |
* @param shell |
|
58 |
* a {@link org.eclipse.swt.widgets.Shell} object. |
|
59 |
* @param title |
|
60 |
* a {@link java.lang.String} object. |
|
61 |
* @param multi |
|
62 |
* a boolean. |
|
63 |
* @param settings |
|
64 |
* a {@link java.lang.String} object. |
|
65 |
* @param conversation |
|
66 |
* a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} |
|
67 |
* object. |
|
68 |
* @param classification |
|
69 |
* a {@link eu.etaxonomy.cdm.model.taxon.TaxonomicTree} object. |
|
70 |
*/ |
|
71 |
protected ClassificationSelectionDialog(Shell shell,//ConversationHolder conversation, |
|
39 |
protected ClassificationSelectionDialog(Shell shell, |
|
72 | 40 |
String title, boolean multi, |
73 | 41 |
String settings, Classification classification) { |
74 |
super(shell, //conversation, |
|
75 |
title, multi, settings, classification); |
|
42 |
super(shell, title, multi, settings, classification); |
|
76 | 43 |
} |
77 | 44 |
|
78 |
/** {@inheritDoc} */ |
|
79 | 45 |
@Override |
80 | 46 |
protected Classification getPersistentObject(UUID cdmUuid) { |
81 | 47 |
return CdmStore.getService(IClassificationService.class).load(cdmUuid); |
82 | 48 |
} |
83 | 49 |
|
84 |
/** {@inheritDoc} */ |
|
85 | 50 |
@Override |
86 | 51 |
protected void callService(String pattern) { |
87 | 52 |
model = CdmStore.getService(IClassificationService.class).getUuidAndTitleCache(limitOfInitialElements, pattern); |
88 | 53 |
} |
89 | 54 |
|
90 |
/** {@inheritDoc} */ |
|
91 | 55 |
@Override |
92 | 56 |
protected AbstractNewEntityWizard getNewEntityWizard(String parameter) { |
93 | 57 |
return null; |
94 | 58 |
} |
95 | 59 |
|
96 |
/** {@inheritDoc} */ |
|
97 | 60 |
@Override |
98 | 61 |
protected String[] getNewWizardText() { |
99 | 62 |
return null; |
Also available in: Unified diff
ref #10186 further remove ConversationHolder and cleanup