Revision 0caafa75
Added by Andreas Müller over 1 year ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/CommonNameReferenceSelectionDialog.java | ||
---|---|---|
20 | 20 |
/** |
21 | 21 |
* @author k.luther |
22 | 22 |
* @since 26.09.2018 |
23 |
* |
|
24 | 23 |
*/ |
25 | 24 |
public class CommonNameReferenceSelectionDialog extends ReferenceSelectionDialog { |
26 | 25 |
|
27 |
/** |
|
28 |
* @param shell |
|
29 |
* @param title |
|
30 |
* @param multi |
|
31 |
* @param reference |
|
32 |
*/ |
|
33 | 26 |
protected CommonNameReferenceSelectionDialog(Shell shell, String title, boolean multi, Reference reference) { |
34 | 27 |
super(shell, title, multi, reference, null); |
35 |
|
|
36 | 28 |
} |
37 | 29 |
|
38 |
|
|
39 |
/* (non-Javadoc) |
|
40 |
* @see eu.etaxonomy.taxeditor.dialogs.AbstractFilteredCdmResourceSelectionDialog#search |
|
41 |
*/ |
|
42 |
/** {@inheritDoc} */ |
|
43 | 30 |
@Override |
44 | 31 |
protected void callService(String pattern) { |
45 |
|
|
46 | 32 |
model = CdmStore.getService(IReferenceService.class).findUuidAndTitleCacheByMarker(100, pattern, MarkerType.COMMON_NAME_REFERENCE()); |
47 |
|
|
48 |
|
|
49 | 33 |
} |
50 | 34 |
|
51 |
/** |
|
52 |
* <p>select</p> |
|
53 |
* |
|
54 |
* @param reference a {@link eu.etaxonomy.cdm.model.reference.ReferenceBase} object. |
|
55 |
* @param shell a {@link org.eclipse.swt.widgets.Shell} object. |
|
56 |
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object. |
|
57 |
* @return a {@link eu.etaxonomy.cdm.model.reference.ReferenceBase} object. |
|
58 |
*/ |
|
59 |
|
|
60 |
public static Reference select(Shell shell, //ConversationHolder conversation, |
|
35 |
public static Reference select(Shell shell, |
|
61 | 36 |
Reference reference) { |
62 | 37 |
CommonNameReferenceSelectionDialog dialog = new CommonNameReferenceSelectionDialog(shell,// conversation, |
63 | 38 |
"Choose a common name reference", isInReference, reference); |
... | ... | |
68 | 43 |
protected AbstractNewEntityWizard getNewEntityWizard(String parameter) { |
69 | 44 |
return new NewCommonNameReferenceWizard(null); |
70 | 45 |
} |
71 |
|
|
72 |
} |
|
46 |
} |
Also available in: Unified diff
ref #10186 further remove ConversationHolder and cleanup