2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.ui
.section
.name
;
12 import org
.eclipse
.jface
.wizard
.Wizard
;
14 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
15 import eu
.etaxonomy
.cdm
.api
.conversation
.IConversationEnabled
;
16 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
17 import eu
.etaxonomy
.cdm
.model
.name
.NameRelationship
;
18 import eu
.etaxonomy
.cdm
.persistence
.hibernate
.CdmDataChangeMap
;
19 import eu
.etaxonomy
.taxeditor
.session
.ICdmEntitySession
;
22 * <p>NameRelationshipWizard class.</p>
25 * @created Jun 1, 2010
28 public class NameRelationshipWizard
extends Wizard
implements IConversationEnabled
{
30 private static NameRelationshipDetailSection callingSection
;
32 //private ICdmEntitySession cdmEntitySession;
33 private ICdmEntitySession previousCdmEntitySession
;
34 private CdmBase rootElement
;
37 * <p>Constructor for NameRelationshipWizard.</p>
39 * @param callingSection a {@link eu.etaxonomy.taxeditor.ui.section.name.NameRelationshipDetailSection} object.
41 public NameRelationshipWizard(NameRelationshipDetailSection callingSection
) {
42 NameRelationshipWizard
.callingSection
= callingSection
;
43 rootElement
= callingSection
.getEntity();
46 private NameRelationshipWizardPage page
;
50 public void addPages() {
51 page
= new NameRelationshipWizardPage(callingSection
);
57 * @see org.eclipse.jface.wizard.Wizard#performFinish()
61 public boolean performFinish() {
62 return page
.isPageComplete();
66 public void dispose() {
72 * <p>getNameRelationship</p>
74 * @return a {@link eu.etaxonomy.cdm.model.name.NameRelationship} object.
76 public NameRelationship
getNameRelationship() {
77 return page
.getNameRelationship();
81 * <p>getConversationHolder</p>
83 * @return a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
86 public ConversationHolder
getConversationHolder() {
87 return callingSection
.getConversationHolder();
92 public void update(CdmDataChangeMap changeEvents
) {}