1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2007 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
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.
|
9
|
*/
|
10
|
|
11
|
package eu.etaxonomy.taxeditor.section.name;
|
12
|
|
13
|
import org.apache.log4j.Logger;
|
14
|
import org.eclipse.jface.wizard.Wizard;
|
15
|
|
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;
|
20
|
|
21
|
/**
|
22
|
* @author n.hoffmann
|
23
|
* @created Jun 1, 2010
|
24
|
* @version 1.0
|
25
|
*/
|
26
|
public class NameRelationshipWizard extends Wizard implements IConversationEnabled{
|
27
|
|
28
|
private static NameRelationshipDetailSection callingSection;
|
29
|
|
30
|
public NameRelationshipWizard(NameRelationshipDetailSection callingSection) {
|
31
|
this.callingSection = callingSection;
|
32
|
}
|
33
|
|
34
|
private static final Logger logger = Logger
|
35
|
.getLogger(NameRelationshipWizard.class);
|
36
|
|
37
|
private NameRelationshipWizardPage page;
|
38
|
|
39
|
@Override
|
40
|
public void addPages() {
|
41
|
page = new NameRelationshipWizardPage(callingSection);
|
42
|
|
43
|
addPage(page);
|
44
|
}
|
45
|
|
46
|
/* (non-Javadoc)
|
47
|
* @see org.eclipse.jface.wizard.Wizard#performFinish()
|
48
|
*/
|
49
|
@Override
|
50
|
public boolean performFinish() {
|
51
|
return page.isPageComplete();
|
52
|
}
|
53
|
|
54
|
|
55
|
|
56
|
public NameRelationship getNameRelationship() {
|
57
|
return page.getNameRelationship();
|
58
|
}
|
59
|
|
60
|
public ConversationHolder getConversationHolder() {
|
61
|
return callingSection.getConversationHolder();
|
62
|
}
|
63
|
|
64
|
public void update(CdmDataChangeMap changeEvents) {}
|
65
|
}
|