3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.taxeditor
.ui
.section
.name
;
13 import org
.apache
.log4j
.Logger
;
14 import org
.eclipse
.jface
.wizard
.Wizard
;
16 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
17 import eu
.etaxonomy
.cdm
.api
.conversation
.IConversationEnabled
;
18 import eu
.etaxonomy
.cdm
.model
.name
.NameRelationship
;
19 import eu
.etaxonomy
.cdm
.persistence
.hibernate
.CdmDataChangeMap
;
22 * <p>NameRelationshipWizard class.</p>
25 * @created Jun 1, 2010
28 public class NameRelationshipWizard
extends Wizard
implements IConversationEnabled
{
30 private static NameRelationshipDetailSection callingSection
;
33 * <p>Constructor for NameRelationshipWizard.</p>
35 * @param callingSection a {@link eu.etaxonomy.taxeditor.ui.section.name.NameRelationshipDetailSection} object.
37 public NameRelationshipWizard(NameRelationshipDetailSection callingSection
) {
38 this.callingSection
= callingSection
;
41 private static final Logger logger
= Logger
42 .getLogger(NameRelationshipWizard
.class);
44 private NameRelationshipWizardPage page
;
48 public void addPages() {
49 page
= new NameRelationshipWizardPage(callingSection
);
55 * @see org.eclipse.jface.wizard.Wizard#performFinish()
59 public boolean performFinish() {
60 return page
.isPageComplete();
66 * <p>getNameRelationship</p>
68 * @return a {@link eu.etaxonomy.cdm.model.name.NameRelationship} object.
70 public NameRelationship
getNameRelationship() {
71 return page
.getNameRelationship();
75 * <p>getConversationHolder</p>
77 * @return a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
79 public ConversationHolder
getConversationHolder() {
80 return callingSection
.getConversationHolder();
84 public void update(CdmDataChangeMap changeEvents
) {}