Revision bdd1bcf5
Added by Andreas Müller over 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/SynonymRelationshipWizard.java | ||
---|---|---|
1 |
// $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 |
} |
|
1 |
//// $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.persistence.hibernate.CdmDataChangeMap; |
|
17 |
// |
|
18 |
///** |
|
19 |
// * @author pplitzner |
|
20 |
// * @date 27.01.2014 |
|
21 |
// * |
|
22 |
// */ |
|
23 |
//public class SynonymRelationshipWizard extends Wizard implements IConversationEnabled{ |
|
24 |
// |
|
25 |
// private static SynonymRelationshipDetailSection callingSection; |
|
26 |
// |
|
27 |
// /** |
|
28 |
// * <p>Constructor for NameRelationshipWizard.</p> |
|
29 |
// * |
|
30 |
// * @param callingSection a {@link eu.etaxonomy.taxeditor.ui.section.name.NameRelationshipDetailSection} object. |
|
31 |
// */ |
|
32 |
// public SynonymRelationshipWizard(SynonymRelationshipDetailSection callingSection) { |
|
33 |
// SynonymRelationshipWizard.callingSection = callingSection; |
|
34 |
// } |
|
35 |
// |
|
36 |
// private SynonymRelationshipWizardPage page; |
|
37 |
// |
|
38 |
// /** {@inheritDoc} */ |
|
39 |
// @Override |
|
40 |
// public void addPages() { |
|
41 |
// page = new SynonymRelationshipWizardPage(callingSection); |
|
42 |
// |
|
43 |
// addPage(page); |
|
44 |
// } |
|
45 |
// |
|
46 |
// /* (non-Javadoc) |
|
47 |
// * @see org.eclipse.jface.wizard.Wizard#performFinish() |
|
48 |
// */ |
|
49 |
// /** {@inheritDoc} */ |
|
50 |
// @Override |
|
51 |
// public boolean performFinish() { |
|
52 |
// return page.isPageComplete(); |
|
53 |
// } |
|
54 |
// |
|
55 |
// |
|
56 |
// |
|
57 |
// /** |
|
58 |
// * <p>getNameRelationship</p> |
|
59 |
// * |
|
60 |
// * @return a {@link eu.etaxonomy.cdm.model.name.NameRelationship} object. |
|
61 |
// */ |
|
62 |
// public SynonymRelationship getSynonymRelationship() { |
|
63 |
// return page.getSynonymRelationship(); |
|
64 |
// } |
|
65 |
// |
|
66 |
// /** |
|
67 |
// * <p>getConversationHolder</p> |
|
68 |
// * |
|
69 |
// * @return a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object. |
|
70 |
// */ |
|
71 |
// @Override |
|
72 |
// public ConversationHolder getConversationHolder() { |
|
73 |
// return callingSection.getConversationHolder(); |
|
74 |
// } |
|
75 |
// |
|
76 |
// /** {@inheritDoc} */ |
|
77 |
// @Override |
|
78 |
// public void update(CdmDataChangeMap changeEvents) {} |
|
79 |
//} |
Also available in: Unified diff
ref #5974 Remove synonym relationships (rename synRelType to synRel and others)