Project

General

Profile

« Previous | Next » 

Revision 13555b11

Added by Katja Luther almost 3 years ago

ref #9630: fix time period disabling and supplemental data enabling

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/supplementaldata/SupplementalDataPartE4.java
113 113
	        else if(structuredSelection.getFirstElement() instanceof DescriptionElementBase ){
114 114
	            structuredSelection = new StructuredSelection((structuredSelection.getFirstElement()));
115 115
                if (((DescriptionElementBase)structuredSelection.getFirstElement()).getInDescription().isComputed()){
116
                    setEnabled(false);
116
                    if (PreferencesUtil.isComputedDesciptionHandlingDisabled()){
117
                        setEnabled(false);
118
                    }else{
119
                        setEnabled(true);
120
                    }
117 121
                }
118 122
            }
119 123
	        else if(structuredSelection.getFirstElement() instanceof DescriptionBase ){
120 124

  
121 125
                if (((DescriptionBase)structuredSelection.getFirstElement()).isComputed()){
122
                    setEnabled(false);
126
                    if (PreferencesUtil.isComputedDesciptionHandlingDisabled()){
127
                        setEnabled(false);
128
                    }else{
129
                        setEnabled(true);
130
                    }
123 131
                }
124 132
            }
125 133
	        else if(structuredSelection.getFirstElement() instanceof TermDto

Also available in: Unified diff