Revision 23783f7a
Added by Niels Hoffmann about 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/password/PasswordWizardPage.java | ||
---|---|---|
24 | 24 |
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage; |
25 | 25 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
26 | 26 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
27 |
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants; |
|
27 | 28 |
import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement; |
28 | 29 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement; |
29 | 30 |
|
... | ... | |
44 | 45 |
private TextWithLabelElement text_passwordRepeat; |
45 | 46 |
private PasswordValidator passwordValidator; |
46 | 47 |
|
48 |
private UniqueUserNameValidator uniqueUsernameValidator; |
|
49 |
|
|
47 | 50 |
/** |
48 | 51 |
* @param formFactory |
49 | 52 |
* @param conversation |
... | ... | |
54 | 57 |
super(formFactory, conversation, entity); |
55 | 58 |
|
56 | 59 |
passwordValidator = new PasswordValidator(); |
60 |
uniqueUsernameValidator = new UniqueUserNameValidator(); |
|
57 | 61 |
} |
58 | 62 |
|
59 | 63 |
/* (non-Javadoc) |
... | ... | |
62 | 66 |
@Override |
63 | 67 |
public void createControl(Composite parent) { |
64 | 68 |
Composite control = formFactory.createComposite(parent); |
65 |
control.setLayoutData(CdmFormFactory.FILL());
|
|
69 |
control.setLayoutData(LayoutConstants.FILL());
|
|
66 | 70 |
|
67 | 71 |
setPageComplete(false); |
68 | 72 |
|
69 |
control.setLayout(CdmFormFactory.LAYOUT(2, false));
|
|
73 |
control.setLayout(LayoutConstants.LAYOUT(2, false));
|
|
70 | 74 |
WizardPageRootElement rootElement = new WizardPageRootElement(formFactory, control, getConversationHolder()); |
71 | 75 |
|
72 | 76 |
if(!CdmStore.getLoginManager().isAdmin()){ |
Also available in: Unified diff
Refactoring of selection elements. Additional minor refactoring. Fixed a bug with Translation Editor (#2752)