// $Id$
/**
* 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.
*/
*/
public class FieldObservationSelectionDialog extends
AbstractFilteredCdmResourceSelectionDialog<FieldUnit> {
-
+
/**
* <p>select</p>
*
* @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 FieldObservationSelectionDialog(Shell shell, ConversationHolder conversation,
String title, boolean multi, String settings,
FieldUnit cdmObject) {
super(shell, conversation, title, multi, settings, cdmObject);
}
-
+
/* (non-Javadoc)
* @see eu.etaxonomy.taxeditor.dialogs.filteredSelection.AbstractFilteredCdmResourceSelectionDialog#getPersistentObject(java.util.UUID)
*/
@Override
protected FieldUnit getPersistentObject(UUID uuid) {
Object object = CdmStore.getService(IOccurrenceService.class).load(uuid);
-
+
SpecimenOrObservationBase specimenObservationBase = (SpecimenOrObservationBase) HibernateProxyHelper.deproxy(object);
-
- if(specimenObservationBase instanceof FieldUnit){
- return (FieldUnit) specimenObservationBase;
+
+ if(specimenObservationBase instanceof FieldUnit){
+ return (FieldUnit) specimenObservationBase;
}
StoreUtil.error(this.getClass(), "Selected object is not a field observation", null);
return null;
/** {@inheritDoc} */
@Override
protected String getNewWizardLinkText() {
- return "Click link to create a new <A>Field Observation</A>.";
+ return String.format("Create a new <a>%1s</a>", "Field Observation ");
}
}