/**
* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
+* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
-*
+*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
* @return a {@link eu.etaxonomy.cdm.model.common.OriginalSourceType} object.
*/
public static OriginalSourceType select(Shell shell, ConversationHolder conversation){
- OriginalSourceTypeSelectionDialog dialog =
- new OriginalSourceTypeSelectionDialog(shell,
+ OriginalSourceTypeSelectionDialog dialog =
+ new OriginalSourceTypeSelectionDialog(shell,
conversation,
- "Choose Original Source Type",
- false,
+ "Choose Original Source Type",
+ false,
OriginalSourceTypeSelectionDialog.class.getCanonicalName());
return getSelectionFromDialog(dialog);
}
-
+
/**
* <p>Constructor for FilteredDerivedUnitSelectionDialog.</p>
*
* @param multi a boolean.
* @param settings a {@link java.lang.String} object.
*/
- protected OriginalSourceTypeSelectionDialog(Shell shell,
- ConversationHolder conversation,
+ protected OriginalSourceTypeSelectionDialog(Shell shell,
+ ConversationHolder conversation,
String title,
- boolean multi,
+ boolean multi,
String settings) {
super(shell, conversation, title, multi, settings, OriginalSourceType.PrimaryTaxonomicSource);
}
/** {@inheritDoc} */
@Override
- protected void search() {
+ protected void initModel() {
model = new ArrayList<OriginalSourceType>();
- model.addAll(EnumSet.allOf(OriginalSourceType.class));
+ model.addAll(EnumSet.allOf(OriginalSourceType.class));
}
/** {@inheritDoc} */
* @return a {@link eu.etaxonomy.cdm.model.common.OriginalSourceType} object.
*/
public static SpecimenOrObservationType select(Shell shell, ConversationHolder conversation){
- SpecimenOrObservationTypeSelectionDialog dialog =
- new SpecimenOrObservationTypeSelectionDialog(shell,
+ SpecimenOrObservationTypeSelectionDialog dialog =
+ new SpecimenOrObservationTypeSelectionDialog(shell,
conversation,
- "Choose Specimen / Observation Type",
- false,
+ "Choose Specimen / Observation Type",
+ false,
SpecimenOrObservationTypeSelectionDialog.class.getCanonicalName());
return getSelectionFromDialog(dialog);
}
-
+
/**
* <p>Constructor for FilteredDerivedUnitSelectionDialog.</p>
*
* @param multi a boolean.
* @param settings a {@link java.lang.String} object.
*/
- protected SpecimenOrObservationTypeSelectionDialog(Shell shell,
- ConversationHolder conversation,
+ protected SpecimenOrObservationTypeSelectionDialog(Shell shell,
+ ConversationHolder conversation,
String title,
- boolean multi,
+ boolean multi,
String settings) {
super(shell, conversation, title, multi, settings, SpecimenOrObservationType.Unknown);
}
/** {@inheritDoc} */
@Override
- protected void search() {
+ protected void initModel() {
model = new ArrayList<SpecimenOrObservationType>();
- model.addAll(EnumSet.allOf(SpecimenOrObservationType.class));
+ model.addAll(EnumSet.allOf(SpecimenOrObservationType.class));
}
/** {@inheritDoc} */