Revision 3be6ef3e
Added by Niels Hoffmann over 13 years ago
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/dialogs/filteredSelection/FilteredFieldObservationSelectionDialog.java | ||
---|---|---|
24 | 24 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
25 | 25 |
|
26 | 26 |
/** |
27 |
* <p>FilteredFieldObservationSelectionDialog class.</p> |
|
28 |
* |
|
27 | 29 |
* @author n.hoffmann |
28 | 30 |
* @created Jun 17, 2010 |
29 | 31 |
* @version 1.0 |
... | ... | |
31 | 33 |
public class FilteredFieldObservationSelectionDialog extends |
32 | 34 |
AbstractFilteredCdmResourceSelectionDialog<FieldObservation> { |
33 | 35 |
|
36 |
/** |
|
37 |
* <p>select</p> |
|
38 |
* |
|
39 |
* @param shell a {@link org.eclipse.swt.widgets.Shell} object. |
|
40 |
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object. |
|
41 |
* @param observation a {@link eu.etaxonomy.cdm.model.occurrence.FieldObservation} object. |
|
42 |
* @return a {@link eu.etaxonomy.cdm.model.occurrence.FieldObservation} object. |
|
43 |
*/ |
|
34 | 44 |
public static FieldObservation select(Shell shell, ConversationHolder conversation, FieldObservation observation){ |
35 | 45 |
FilteredFieldObservationSelectionDialog dialog = new FilteredFieldObservationSelectionDialog(shell, conversation, |
36 | 46 |
"Choose Derived Unit", false, FilteredFieldObservationSelectionDialog.class.getCanonicalName(), observation); |
37 | 47 |
return getSelectionFromDialog(dialog); |
38 | 48 |
} |
39 | 49 |
|
50 |
/** |
|
51 |
* <p>Constructor for FilteredFieldObservationSelectionDialog.</p> |
|
52 |
* |
|
53 |
* @param shell a {@link org.eclipse.swt.widgets.Shell} object. |
|
54 |
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object. |
|
55 |
* @param title a {@link java.lang.String} object. |
|
56 |
* @param multi a boolean. |
|
57 |
* @param settings a {@link java.lang.String} object. |
|
58 |
* @param cdmObject a {@link eu.etaxonomy.cdm.model.occurrence.FieldObservation} object. |
|
59 |
*/ |
|
40 | 60 |
protected FilteredFieldObservationSelectionDialog(Shell shell, ConversationHolder conversation, |
41 | 61 |
String title, boolean multi, String settings, |
42 | 62 |
FieldObservation cdmObject) { |
... | ... | |
46 | 66 |
/* (non-Javadoc) |
47 | 67 |
* @see eu.etaxonomy.taxeditor.dialogs.filteredSelection.AbstractFilteredCdmResourceSelectionDialog#getPersistentObject(java.util.UUID) |
48 | 68 |
*/ |
69 |
/** {@inheritDoc} */ |
|
49 | 70 |
@Override |
50 | 71 |
protected FieldObservation getPersistentObject(UUID uuid) { |
51 | 72 |
Object object = CdmStore.getOccurrenceService().load(uuid); |
... | ... | |
62 | 83 |
/* (non-Javadoc) |
63 | 84 |
* @see eu.etaxonomy.taxeditor.dialogs.filteredSelection.AbstractFilteredCdmResourceSelectionDialog#initModel() |
64 | 85 |
*/ |
86 |
/** {@inheritDoc} */ |
|
65 | 87 |
@Override |
66 | 88 |
protected void initModel() { |
67 | 89 |
model = CdmStore.getOccurrenceService().getFieldObservationUuidAndTitleCache(); |
68 | 90 |
} |
69 | 91 |
|
92 |
/** {@inheritDoc} */ |
|
70 | 93 |
@Override |
71 | 94 |
protected AbstractNewEntityWizard getNewEntityWizard() { |
72 | 95 |
return new NewFieldObservationWizard(); |
73 | 96 |
} |
74 | 97 |
|
98 |
/** {@inheritDoc} */ |
|
75 | 99 |
@Override |
76 | 100 |
protected String getNewWizardLinkText() { |
77 | 101 |
return "Click link to create a new <A>Field Observation</A>."; |
Also available in: Unified diff
performed javacscript:fix and worked on documentation