Project

General

Profile

« Previous | Next » 

Revision f0a072ff

Added by Patrick Plitzner over 10 years ago

  • aligned linkt text for creation of new elements via pop-up dialog

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/UserSelectionDialog.java
1 1
// $Id$
2 2
/**
3 3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
4
* European Distributed Institute of Taxonomy
5 5
* http://www.e-taxonomy.eu
6
* 
6
*
7 7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8 8
* See LICENSE.TXT at the top of this package for the full license terms.
9 9
*/
......
33 33
		AbstractFilteredCdmResourceSelectionDialog<User> {
34 34

  
35 35
	/**
36
	 * 
36
	 *
37 37
	 * @param shell
38 38
	 * @param conversation
39 39
	 * @param user
......
44 44
				"Choose User", false, UserSelectionDialog.class.getCanonicalName(), user);
45 45
		return getSelectionFromDialog(dialog);
46 46
	}
47
	
47

  
48 48
	/**
49 49
	 * @param shell
50 50
	 * @param conversation
......
64 64
	@Override
65 65
	protected void initModel() {
66 66
		List<User> users = CdmStore.getService(IUserService.class).list(User.class, null, null, null, null);
67
		
67

  
68 68
		model = new ArrayList<UuidAndTitleCache<User>>();
69
		
69

  
70 70
		for(User user : users){
71 71
			model.add(new UuidAndTitleCache<User>(User.class, user.getUuid(),String.format("%s, %s", user.getUsername(), user.getPerson())));
72
		}		 
72
		}
73 73
	}
74 74

  
75 75
	/* (non-Javadoc)
......
77 77
	 */
78 78
	@Override
79 79
	protected String getNewWizardLinkText() {
80
		return "Create a new <A>User</A>.";
80
		return String.format("Create a new <a>%1s</a>", "User ");
81 81
	}
82 82

  
83 83
	/* (non-Javadoc)
......
100 100
	protected String getTitle(User user) {
101 101
		return user != null ? user.getUsername() : "";
102 102
	}
103
	
103

  
104 104
}

Also available in: Unified diff