// $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.
*/
"Choose Unit", false, DerivedUnitSelectionDialog.class.getCanonicalName(), unit);
return getSelectionFromDialog(dialog);
}
-
+
/**
* <p>Constructor for FilteredDerivedUnitSelectionDialog.</p>
*
boolean multi, String settings, DerivedUnit cdmObject) {
super(shell, conversation, title, multi, settings, cdmObject);
}
-
+
/** {@inheritDoc} */
@Override
protected DerivedUnit getPersistentObject(UUID uuid) {
Object object = CdmStore.getService(IOccurrenceService.class).load(uuid);
-
+
SpecimenOrObservationBase specimenObservationBase = (SpecimenOrObservationBase) HibernateProxyHelper.deproxy(object);
-
- if(specimenObservationBase instanceof DerivedUnit){
- return (DerivedUnit) specimenObservationBase;
+
+ if(specimenObservationBase instanceof DerivedUnit){
+ return (DerivedUnit) specimenObservationBase;
}
StoreUtil.error(this.getClass(), "Selected unit is not a derived unit", null);
- return null;
+ return null;
}
/** {@inheritDoc} */
/** {@inheritDoc} */
@Override
protected String getNewWizardLinkText() {
- return "Click link to create a new <A>Unit</A>.";
+ return String.format("Create a new <a>%1s</a>", "Unit ");
}
}