65f05e78c5f0ba197f4f871e04a4e061c24eb16e
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / user / UserDetailWizardPage.java
1 /**
2 *
3 */
4 package eu.etaxonomy.taxeditor.ui.section.user;
5
6 import org.eclipse.swt.SWT;
7
8 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
9 import eu.etaxonomy.cdm.model.common.User;
10 import eu.etaxonomy.taxeditor.ui.forms.AbstractCdmEntityWizardPage;
11 import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory;
12 import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory.DetailType;
13 import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement;
14 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
15
16 /**
17 * @author n.hoffmann
18 *
19 */
20 public class UserDetailWizardPage extends AbstractCdmEntityWizardPage<User> {
21
22 public UserDetailWizardPage(CdmFormFactory formFactory,
23 ConversationHolder conversation, User entity) {
24 super(formFactory, conversation, entity);
25 setTitle("User");
26 }
27
28 /* (non-Javadoc)
29 * @see eu.etaxonomy.taxeditor.ui.forms.AbstractCdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement)
30 */
31 @Override
32 public AbstractCdmDetailElement createElement(ICdmFormElement rootElement) {
33 UserDetailElement userElement = (UserDetailElement) formFactory.createCdmDetailElement(DetailType.USER, rootElement, SWT.NULL);
34 return userElement;
35 }
36
37 }