Revision 12521139
Added by Katja Luther almost 3 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/e4/handler/CreateDescriptionElementHandlerE4.java | ||
---|---|---|
35 | 35 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
36 | 36 |
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation; |
37 | 37 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
38 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
|
38 | 39 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
39 | 40 |
|
40 | 41 |
/** |
... | ... | |
94 | 95 |
else if (object instanceof DescriptionBase) { |
95 | 96 |
description = HibernateProxyHelper.deproxy(object, DescriptionBase.class); |
96 | 97 |
} |
97 |
if (description.isComputed()){ |
|
98 |
|
|
99 |
if (description.isComputed() && PreferencesUtil.isComputedDesciptionHandlingDisabled()){ |
|
98 | 100 |
canExecute = false; |
99 | 101 |
menuItem.getParent().setVisible(false); |
100 | 102 |
}else{ |
Also available in: Unified diff
ref #9630: make computed descriptions handling configurable - adapt handler