Revision 05eb2382
Added by Patrick Plitzner over 5 years ago
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(); |
Also available in: Unified diff
code refactoring + typo