Revision 960c17a3
Added by Katja Luther over 2 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescriptionElementDetailElement.java | ||
---|---|---|
13 | 13 |
import java.util.Collection; |
14 | 14 |
|
15 | 15 |
import eu.etaxonomy.cdm.model.description.DescriptionElementBase; |
16 |
import eu.etaxonomy.cdm.model.description.Distribution; |
|
17 |
import eu.etaxonomy.taxeditor.editor.IDistributionEditorPart; |
|
18 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
|
16 | 19 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
17 | 20 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
18 | 21 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
... | ... | |
61 | 64 |
except.add(formElement); |
62 | 65 |
} |
63 | 66 |
} |
64 |
if (getEntity().getInDescription().isComputed() && PreferencesUtil.isComputedDesciptionHandlingDisabled()){
|
|
67 |
if ((getEntity().getInDescription().isComputed() && PreferencesUtil.isComputedDesciptionHandlingDisabled()) || (getEntity() instanceof Distribution && AbstractUtility.getActivePart() instanceof IDistributionEditorPart)){
|
|
65 | 68 |
enabled = false; |
66 | 69 |
}else{ |
67 | 70 |
enabled = true; |
Also available in: Unified diff
some more enable/disable elements issues