eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/DerivedUnitSelectionDialog.java -text
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/FeatureSelectionDialog.java -text
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/FeatureTreeSelectionDialog.java -text
-eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/FieldObservationSelectionDialog.java -text
+eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/FieldUnitSelectionDialog.java -text
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/GrantedAuthoritySelectionDialog.java -text
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/GroupSelectionDialog.java -text
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/InstitutionSelectionDialog.java -text
* @created Jun 17, 2010
* @version 1.0
*/
-public class FieldObservationSelectionDialog extends
+public class FieldUnitSelectionDialog extends
AbstractFilteredCdmResourceSelectionDialog<FieldUnit> {
/**
* @return a {@link eu.etaxonomy.cdm.model.occurrence.FieldUnit} object.
*/
public static FieldUnit select(Shell shell, ConversationHolder conversation, FieldUnit observation){
- FieldObservationSelectionDialog dialog = new FieldObservationSelectionDialog(shell, conversation,
- "Choose Derived Unit", false, FieldObservationSelectionDialog.class.getCanonicalName(), observation);
+ FieldUnitSelectionDialog dialog = new FieldUnitSelectionDialog(shell, conversation,
+ "Choose Derived Unit", false, FieldUnitSelectionDialog.class.getCanonicalName(), observation);
return getSelectionFromDialog(dialog);
}
* @param settings a {@link java.lang.String} object.
* @param cdmObject a {@link eu.etaxonomy.cdm.model.occurrence.FieldObservation} object.
*/
- protected FieldObservationSelectionDialog(Shell shell, ConversationHolder conversation,
+ protected FieldUnitSelectionDialog(Shell shell, ConversationHolder conversation,
String title, boolean multi, String settings,
FieldUnit cdmObject) {
super(shell, conversation, title, multi, settings, cdmObject);
if(specimenObservationBase instanceof FieldUnit){
return (FieldUnit) specimenObservationBase;
}
- StoreUtil.error(this.getClass(), "Selected object is not a field observation", null);
+ StoreUtil.error(this.getClass(), "Selected object is not a field unit", null);
return null;
}
/** {@inheritDoc} */
@Override
protected String getNewWizardLinkText() {
- return String.format("Create a new <a>%1s</a>", "Field Observation ");
+ return String.format("Create a new <a>%1s</a>", "Field Unit ");
}
}
return (T) DerivedUnitSelectionDialog.select(shell, conversation, (DerivedUnit) curentSelection);
}
if(clazz.equals(FieldUnit.class)){
- return (T) FieldObservationSelectionDialog.select(shell, conversation, (FieldUnit) curentSelection);
+ return (T) FieldUnitSelectionDialog.select(shell, conversation, (FieldUnit) curentSelection);
}
if(clazz.equals(NamedArea.class)){
return (T) NamedAreaSelectionDialog.select(shell, conversation, (NamedArea) curentSelection);