/**
- *
+ *
*/
package eu.etaxonomy.taxeditor.ui.section.user;
-import org.eclipse.swt.SWT;
-
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
import eu.etaxonomy.cdm.model.common.User;
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage;
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
-import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
/**
* @see eu.etaxonomy.taxeditor.ui.forms.AbstractCdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement)
*/
@Override
- public AbstractCdmDetailElement createElement(ICdmFormElement rootElement) {
- UserDetailElement userElement = (UserDetailElement) formFactory.createCdmDetailElement(DetailType.USER, rootElement, SWT.NULL);
+ public AbstractCdmDetailElement<User> createElement(ICdmFormElement rootElement) {
+ UserDetailElement userElement = formFactory.createUserDetailElement(rootElement);
userElement.setEntity(getEntity());
return userElement;
}
-
+
@Override
protected void checkComplete() {
boolean hasUsername = getEntity().getUsername() != null;