Revision f29ead53
Added by Katja Luther almost 2 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.apache.logging.log4j.LogManager; |
|
15 |
import org.apache.logging.log4j.Logger; |
|
14 | 16 |
import org.eclipse.swt.events.SelectionListener; |
15 | 17 |
|
16 | 18 |
import eu.etaxonomy.cdm.model.common.IdentifiableSource; |
17 | 19 |
import eu.etaxonomy.cdm.model.name.TypeDesignationBase; |
20 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
18 | 21 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
19 | 22 |
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection; |
20 | 23 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
... | ... | |
36 | 39 |
*/ |
37 | 40 |
public abstract class AbstractTypeDesignationElement<T extends TypeDesignationBase> extends AbstractSourcedEntityBaseElement<T> { |
38 | 41 |
|
42 |
private static final Logger logger = LogManager.getLogger(AbstractTypeDesignationElement.class); |
|
39 | 43 |
protected CheckboxElement checkbox_notDesignated; |
40 | 44 |
// protected EntitySelectionElement<Reference> selection_reference; |
41 | 45 |
// protected TextWithLabelElement text_referenceDetail; |
... | ... | |
107 | 111 |
if (entity.hasDesignationSource()){ |
108 | 112 |
singleSourceElement.setEntity(entity.getDesignationSource(true)); |
109 | 113 |
} |
114 |
MessagingUtils.info("Create new source section."); |
|
110 | 115 |
sourceSection = formFactory.createSourceSection(getConversationHolder(), formElement, StoreUtil.getSectionStyle(SourceSection.class, IdentifiableSource.class.getCanonicalName())); |
111 | 116 |
sourceSection.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
112 | 117 |
sourceSection.setEntity(entity); |
118 |
MessagingUtils.info("New source section created."); |
|
113 | 119 |
StoreUtil.reflowParentScrolledForm(getLayoutComposite(), true); |
114 | 120 |
|
115 | 121 |
} |
Also available in: Unified diff
ref #10080: add messages