- 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 / FieldObservationSelectionDialog.java
index c7bbf281382b34f6aa4e6adc40ce2dbd39cafbb9..a3bf4c29c7fc663518e1ef585efd3e62fa4df784 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.
 */
@@ -33,7 +33,7 @@ import eu.etaxonomy.taxeditor.store.StoreUtil;
  */
 public class FieldObservationSelectionDialog extends
                AbstractFilteredCdmResourceSelectionDialog<FieldUnit> {
-       
+
        /**
         * <p>select</p>
         *
@@ -58,12 +58,12 @@ public class FieldObservationSelectionDialog extends
         * @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)
         */
@@ -71,11 +71,11 @@ public class FieldObservationSelectionDialog extends
        @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;
@@ -99,6 +99,6 @@ public class FieldObservationSelectionDialog extends
        /** {@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 ");
        }
 }