1 |
ca9fc8ea
|
Patric Plitzner
|
// $Id$
|
2 |
|
|
/**
|
3 |
|
|
* Copyright (C) 2014 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 |
|
|
package eu.etaxonomy.taxeditor.ui.section.name;
|
11 |
|
|
|
12 |
|
|
import org.eclipse.jface.wizard.Wizard;
|
13 |
|
|
|
14 |
|
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
15 |
|
|
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
|
16 |
|
|
import eu.etaxonomy.cdm.model.taxon.SynonymRelationship;
|
17 |
|
|
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
|
18 |
|
|
|
19 |
|
|
/**
|
20 |
|
|
* @author pplitzner
|
21 |
|
|
* @date 27.01.2014
|
22 |
|
|
*
|
23 |
|
|
*/
|
24 |
|
|
public class SynonymRelationshipWizard extends Wizard implements IConversationEnabled{
|
25 |
|
|
|
26 |
|
|
private static SynonymRelationshipDetailSection callingSection;
|
27 |
|
|
|
28 |
|
|
/**
|
29 |
|
|
* <p>Constructor for NameRelationshipWizard.</p>
|
30 |
|
|
*
|
31 |
|
|
* @param callingSection a {@link eu.etaxonomy.taxeditor.ui.section.name.NameRelationshipDetailSection} object.
|
32 |
|
|
*/
|
33 |
|
|
public SynonymRelationshipWizard(SynonymRelationshipDetailSection callingSection) {
|
34 |
|
|
SynonymRelationshipWizard.callingSection = callingSection;
|
35 |
|
|
}
|
36 |
|
|
|
37 |
|
|
private SynonymRelationshipWizardPage page;
|
38 |
|
|
|
39 |
|
|
/** {@inheritDoc} */
|
40 |
|
|
@Override
|
41 |
|
|
public void addPages() {
|
42 |
|
|
page = new SynonymRelationshipWizardPage(callingSection);
|
43 |
|
|
|
44 |
|
|
addPage(page);
|
45 |
|
|
}
|
46 |
|
|
|
47 |
|
|
/* (non-Javadoc)
|
48 |
|
|
* @see org.eclipse.jface.wizard.Wizard#performFinish()
|
49 |
|
|
*/
|
50 |
|
|
/** {@inheritDoc} */
|
51 |
|
|
@Override
|
52 |
|
|
public boolean performFinish() {
|
53 |
|
|
return page.isPageComplete();
|
54 |
|
|
}
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
/**
|
59 |
|
|
* <p>getNameRelationship</p>
|
60 |
|
|
*
|
61 |
|
|
* @return a {@link eu.etaxonomy.cdm.model.name.NameRelationship} object.
|
62 |
|
|
*/
|
63 |
|
|
public SynonymRelationship getSynonymRelationship() {
|
64 |
|
|
return page.getSynonymRelationship();
|
65 |
|
|
}
|
66 |
|
|
|
67 |
|
|
/**
|
68 |
|
|
* <p>getConversationHolder</p>
|
69 |
|
|
*
|
70 |
|
|
* @return a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
|
71 |
|
|
*/
|
72 |
|
|
@Override
|
73 |
|
|
public ConversationHolder getConversationHolder() {
|
74 |
|
|
return callingSection.getConversationHolder();
|
75 |
|
|
}
|
76 |
|
|
|
77 |
|
|
/** {@inheritDoc} */
|
78 |
|
|
@Override
|
79 |
|
|
public void update(CdmDataChangeMap changeEvents) {}
|
80 |
|
|
}
|