// $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.
*/
AbstractFilteredCdmResourceSelectionDialog<User> {
/**
- *
+ *
* @param shell
* @param conversation
* @param user
"Choose User", false, UserSelectionDialog.class.getCanonicalName(), user);
return getSelectionFromDialog(dialog);
}
-
+
/**
* @param shell
* @param conversation
@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)
*/
@Override
protected String getNewWizardLinkText() {
- return "Create a new <A>User</A>.";
+ return String.format("Create a new <a>%1s</a>", "User ");
}
/* (non-Javadoc)
protected String getTitle(User user) {
return user != null ? user.getUsername() : "";
}
-
+
}