- 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 / UserSelectionDialog.java
index d15e451639d8bfb4beb6a886537301378305add7..a73d9443d726d1f59b7f136accf89f6556988c41 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 @@ public class UserSelectionDialog extends
                AbstractFilteredCdmResourceSelectionDialog<User> {
 
        /**
-        * 
+        *
         * @param shell
         * @param conversation
         * @param user
@@ -44,7 +44,7 @@ public class UserSelectionDialog extends
                                "Choose User", false, UserSelectionDialog.class.getCanonicalName(), user);
                return getSelectionFromDialog(dialog);
        }
-       
+
        /**
         * @param shell
         * @param conversation
@@ -64,12 +64,12 @@ public class UserSelectionDialog extends
        @Override
        protected void initModel() {
                List<User> users = CdmStore.getService(IUserService.class).list(User.class, null, null, null, null);
-               
+
                model = new ArrayList<UuidAndTitleCache<User>>();
-               
+
                for(User user : users){
                        model.add(new UuidAndTitleCache<User>(User.class, user.getUuid(),String.format("%s, %s", user.getUsername(), user.getPerson())));
-               }                
+               }
        }
 
        /* (non-Javadoc)
@@ -77,7 +77,7 @@ public class UserSelectionDialog extends
         */
        @Override
        protected String getNewWizardLinkText() {
-               return "Create a new <A>User</A>.";
+               return String.format("Create a new <a>%1s</a>", "User ");
        }
 
        /* (non-Javadoc)
@@ -100,5 +100,5 @@ public class UserSelectionDialog extends
        protected String getTitle(User user) {
                return user != null ? user.getUsername() : "";
        }
-       
+
 }