Revision f9328c66
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameRelationshipWizardPage.java | ||
---|---|---|
17 | 17 |
import eu.etaxonomy.cdm.model.name.NameRelationship; |
18 | 18 |
import eu.etaxonomy.cdm.model.name.NameRelationshipType; |
19 | 19 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
20 |
import eu.etaxonomy.taxeditor.l10n.Messages; |
|
20 | 21 |
import eu.etaxonomy.taxeditor.ui.AbstractEntityCollectionElementWizardPage; |
21 | 22 |
import eu.etaxonomy.taxeditor.ui.combo.NameRelationshipTypeCombo; |
22 | 23 |
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement; |
... | ... | |
56 | 57 |
*/ |
57 | 58 |
protected NameRelationshipWizardPage( |
58 | 59 |
NameRelationshipDetailSection callingSection) { |
59 |
super("NameRelationshipWizardPage"); |
|
60 |
setTitle("New Name Relationship"); |
|
61 |
setDescription(callingSection.getEntity().getTitleCache()); |
|
60 |
super("NameRelationshipWizardPage"); //$NON-NLS-1$ |
|
61 |
setTitle("New Name Relationship"); //$NON-NLS-1$ |
|
62 |
//setDescription(callingSection.getEntity().getTitleCache()); |
|
63 |
setDescription(Messages.NameRelationshipWizardPage_description); |
|
62 | 64 |
this.entity = callingSection.getEntity(); |
63 | 65 |
this.formFactory = callingSection.getFormFactory(); |
64 | 66 |
|
... | ... | |
78 | 80 |
super.createControl(parent); |
79 | 81 |
|
80 | 82 |
combo_relationshipType = formFactory.createNameRelationshipTypeCombo(rootElement, |
81 |
"Type", SWT.NULL, false,null);
|
|
83 |
entity.getNameCache(), SWT.NULL, false,null);
|
|
82 | 84 |
|
83 | 85 |
|
84 | 86 |
selection_relatedTo = formFactory |
85 | 87 |
.createSelectionElement(TaxonName.class, |
86 | 88 |
((NameRelationshipWizard) getWizard()) |
87 | 89 |
.getConversationHolder(), rootElement, |
88 |
"Related to",this.entity, EntitySelectionElement.ALL,
|
|
90 |
"",this.entity, EntitySelectionElement.ALL, |
|
89 | 91 |
SWT.NULL, true); |
90 | 92 |
|
91 | 93 |
} |
Also available in: Unified diff
ref #7809: adapt namerelationship wizard