Revision 9e150d47
Added by Katja Luther about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/AbstractTypeDesignationElement.java | ||
---|---|---|
11 | 11 |
|
12 | 12 |
import java.util.Iterator; |
13 | 13 |
|
14 |
import org.eclipse.swt.SWT; |
|
15 | 14 |
import org.eclipse.swt.events.SelectionListener; |
16 | 15 |
|
17 | 16 |
import eu.etaxonomy.cdm.model.name.TypeDesignationBase; |
... | ... | |
40 | 39 |
protected EntitySelectionElement<Reference> selection_reference; |
41 | 40 |
protected TextWithLabelElement text_referenceDetail; |
42 | 41 |
protected ICdmFormElement formElement; |
42 |
protected int style; |
|
43 | 43 |
|
44 | 44 |
/** |
45 | 45 |
* <p>Constructor for AbstractTypeDesignationElement.</p> |
... | ... | |
62 | 62 |
public void createControls(ICdmFormElement formElement, int style) { |
63 | 63 |
checkbox_notDesignated = formFactory.createCheckbox(formElement, "Not Designated", false, style); |
64 | 64 |
this.formElement = formElement; |
65 |
this.style = style; |
|
65 | 66 |
} |
66 | 67 |
|
67 | 68 |
@Override |
... | ... | |
73 | 74 |
removeNotDesignatedControls(); |
74 | 75 |
selection_reference = formFactory |
75 | 76 |
.createSelectionElement(Reference.class, formElement, "Status Reference", |
76 |
entity.getCitation(), EntitySelectionElement.ALL, SWT.NULL);
|
|
77 |
entity.getCitation(), EntitySelectionElement.ALL, style);
|
|
77 | 78 |
|
78 | 79 |
text_referenceDetail = formFactory.createTextWithLabelElement( |
79 |
formElement, "Status Reference Detail", entity.getCitationMicroReference(), SWT.NULL);
|
|
80 |
checkbox_notDesignated = formFactory.createCheckbox(formElement, "Not Designated", entity.isNotDesignated(), SWT.NONE);
|
|
80 |
formElement, "Reference Detail", entity.getCitationMicroReference(), style);
|
|
81 |
checkbox_notDesignated = formFactory.createCheckbox(formElement, "Not Designated", entity.isNotDesignated(), style);
|
|
81 | 82 |
} |
82 | 83 |
}else{ |
83 | 84 |
if (selection_reference != null){ |
Also available in: Unified diff
ref #8136: shorter reference detail label