Project

General

Profile

Revision 05eb2382

ID05eb23825f6b3e7027793530d2c8ff50db8bd572
Parent 892c023e
Child 72774356

Added by Patrick Plitzner about 1 year ago

code refactoring + typo

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/newWizard/NewInstitutionWizard.java
21 21
 */
22 22
public class NewInstitutionWizard extends AbstractNewEntityWizard<Institution> {
23 23

  
24
	/* (non-Javadoc)
25
	 * @see org.eclipse.jface.wizard.Wizard#addPages()
26
	 */
27 24
	@Override
28 25
	public void addPages() {
29 26
		addPage(new InstitutionWizardPage(formFactory, getConversationHolder(), getEntity()));
30 27
	}
31 28

  
32
	/* (non-Javadoc)
33
	 * @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#saveEntity()
34
	 */
35 29
	@Override
36 30
	protected void saveEntity() {
37 31
	    CdmStore.getService(IAgentService.class).merge(getEntity(), true);
38 32
	}
39 33

  
40
	/* (non-Javadoc)
41
	 * @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#createNewEntity()
42
	 */
43 34
	@Override
44 35
	protected Institution createNewEntity() {
45 36
		return Institution.NewInstance();
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/newWizard/NewUserWizard.java
25 25
	@Override
26 26
	protected void saveEntity() {
27 27
	    CdmStore.getService(IUserService.class).merge(getEntity(), true);
28
	    
29 28
	}
30 29

  
31 30
	@Override
......
35 34

  
36 35
	@Override
37 36
	protected String getEntityName() {
38
		return "Institution";
37
		return "User";
39 38
	}
40 39

  
41 40
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)