- aligned linkt text for creation of new elements via pop-up dialog
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / dialog / selection / DerivedUnitSelectionDialog.java
index 70976a68be2a88553faf7b9462ee4703b8837934..5c564893923e352b0c5122b7be534af6eddd26d5 100644 (file)
@@ -1,9 +1,9 @@
 // $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.
 */
@@ -47,7 +47,7 @@ public class DerivedUnitSelectionDialog extends
                                "Choose Unit", false, DerivedUnitSelectionDialog.class.getCanonicalName(), unit);
                return getSelectionFromDialog(dialog);
        }
-       
+
        /**
         * <p>Constructor for FilteredDerivedUnitSelectionDialog.</p>
         *
@@ -62,19 +62,19 @@ public class DerivedUnitSelectionDialog extends
                        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} */
@@ -92,6 +92,6 @@ public class DerivedUnitSelectionDialog extends
        /** {@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 ");
        }
 }