Revision f5979052
Added by Katja Luther over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/DerivedUnitSelectionDialog.java | ||
---|---|---|
16 | 16 |
import org.eclipse.swt.widgets.Shell; |
17 | 17 |
import org.eclipse.swt.widgets.Text; |
18 | 18 |
|
19 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
|
20 | 19 |
import eu.etaxonomy.cdm.api.service.IOccurrenceService; |
21 | 20 |
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper; |
22 | 21 |
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit; |
... | ... | |
44 | 43 |
* @param unit a {@link eu.etaxonomy.cdm.model.occurrence.DerivedUnitBase} object. |
45 | 44 |
* @return a {@link eu.etaxonomy.cdm.model.occurrence.DerivedUnitBase} object. |
46 | 45 |
*/ |
47 |
public static DerivedUnit select(Shell shell, ConversationHolder conversation, DerivedUnit unit){ |
|
48 |
DerivedUnitSelectionDialog dialog = new DerivedUnitSelectionDialog(shell, conversation, |
|
46 |
public static DerivedUnit select(Shell shell, //ConversationHolder conversation, |
|
47 |
DerivedUnit unit){ |
|
48 |
DerivedUnitSelectionDialog dialog = new DerivedUnitSelectionDialog(shell, //conversation, |
|
49 | 49 |
"Choose Unit", false, DerivedUnitSelectionDialog.class.getCanonicalName(), unit); |
50 | 50 |
return getSelectionFromDialog(dialog); |
51 | 51 |
} |
... | ... | |
60 | 60 |
* @param settings a {@link java.lang.String} object. |
61 | 61 |
* @param cdmObject a {@link eu.etaxonomy.cdm.model.occurrence.DerivedUnitBase} object. |
62 | 62 |
*/ |
63 |
protected DerivedUnitSelectionDialog(Shell shell, ConversationHolder conversation, String title, |
|
63 |
protected DerivedUnitSelectionDialog(Shell shell, //ConversationHolder conversation, |
|
64 |
String title, |
|
64 | 65 |
boolean multi, String settings, DerivedUnit cdmObject) { |
65 |
super(shell, conversation, title, multi, settings, cdmObject); |
|
66 |
super(shell, //conversation, |
|
67 |
title, multi, settings, cdmObject); |
|
66 | 68 |
} |
67 | 69 |
|
68 | 70 |
/** {@inheritDoc} */ |
Also available in: Unified diff
fix multiple representation by removing conversation of selection dialog