Revision 4e59c9c1
Added by Andreas Kohlbecker about 10 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/GrantedAuthoritySelectionDialog.java | ||
---|---|---|
24 | 24 |
import eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard; |
25 | 25 |
import eu.etaxonomy.taxeditor.newWizard.NewGrantedAuthorityWizard; |
26 | 26 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
27 |
import eu.etaxonomy.taxeditor.ui.section.grantedAuthority.GrantedAuthorityLabelTextProvider; |
|
27 | 28 |
|
28 | 29 |
/** |
29 | 30 |
* @author a.kohlbecker |
... | ... | |
64 | 65 |
model = new ArrayList<UuidAndTitleCache<GrantedAuthorityImpl>>(); |
65 | 66 |
|
66 | 67 |
for(GrantedAuthorityImpl authority : authorities){ |
67 |
model.add(new UuidAndTitleCache<GrantedAuthorityImpl>(GrantedAuthorityImpl.class, authority.getUuid(),String.format("%s", authority.getAuthority()))); |
|
68 |
|
|
69 |
model.add(new UuidAndTitleCache<GrantedAuthorityImpl>(GrantedAuthorityImpl.class, authority.getUuid(),String.format("%s", GrantedAuthorityLabelTextProvider.getText(authority)))); |
|
68 | 70 |
} |
69 | 71 |
} |
70 | 72 |
|
... | ... | |
94 | 96 |
|
95 | 97 |
@Override |
96 | 98 |
protected String getTitle(GrantedAuthorityImpl authority) { |
97 |
return authority != null ? authority.getAuthority() : "";
|
|
99 |
return authority != null ? GrantedAuthorityLabelTextProvider.getText(authority) : "";
|
|
98 | 100 |
} |
99 | 101 |
|
100 | 102 |
} |
Also available in: Unified diff
solving #4013 (GrantedAuthority: Humane label of TaxonNode authorities)