Project

General

Profile

« Previous | Next » 

Revision fbd932cc

Added by Katja Luther over 5 years ago

ref #7849: disable apply button until something was changed in preference page

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/SpecimenOrObservationPreferences.java
94 94
        showSpecimenButton.addSelectionListener(new SelectionAdapter(){
95 95
             @Override
96 96
             public void widgetSelected(SelectionEvent e) {
97
                 setApply(true);
97 98
                 isShowSpecimenRelatedIssues = showSpecimenButton.getSelection();
98 99
                 if(isShowSpecimenRelatedIssues){
99 100
                     composite.setVisible(true);
......
110 111
            allowOverrideIsShowSpecimenRelatedIssuesButton.addSelectionListener(new SelectionAdapter(){
111 112
                @Override
112 113
                public void widgetSelected(SelectionEvent e) {
114
                    setApply(true);
113 115
                    allowOverrideShowSpecimenRelatedIssues = allowOverrideIsShowSpecimenRelatedIssuesButton.getSelection();
114 116
                }
115 117
            });
......
118 120
            allowOverrideIsShowSpecimenRelatedIssuesButton.addSelectionListener(new SelectionAdapter(){
119 121
                @Override
120 122
                public void widgetSelected(SelectionEvent e) {
123
                    setApply(true);
121 124
                    overrideShowSpecimenRelatedIssues = allowOverrideIsShowSpecimenRelatedIssuesButton.getSelection();
122 125
                }
123 126
            });
......
141 144
        showCollectingAreaInGeneralSectionButton.addSelectionListener(new SelectionAdapter(){
142 145
             @Override
143 146
             public void widgetSelected(SelectionEvent e) {
147
                 setApply(true);
144 148
                 isShowCollectingAreaInGeneralSection = showCollectingAreaInGeneralSectionButton.getSelection();
145 149

  
146 150
              }
......
151 155
            allowOverrideShowCollectingAreaButton.addSelectionListener(new SelectionAdapter(){
152 156
                @Override
153 157
                public void widgetSelected(SelectionEvent e) {
158
                    setApply(true);
154 159
                    allowOverrideShowCollectingAreaInGeneralSection = allowOverrideShowCollectingAreaButton.getSelection();
155 160
                }
156 161
            });
......
159 164
            allowOverrideShowCollectingAreaButton.addSelectionListener(new SelectionAdapter(){
160 165
                @Override
161 166
                public void widgetSelected(SelectionEvent e) {
167
                    setApply(true);
162 168
                    overrideShowCollectionAreaInGeneralSection = allowOverrideShowCollectingAreaButton.getSelection();
163 169
                }
164 170
            });
......
174 180
        determinationOnlyForFieldUnitsButton.addSelectionListener(new SelectionAdapter(){
175 181
             @Override
176 182
             public void widgetSelected(SelectionEvent e) {
183
                 setApply(true);
177 184
                 isDeterminationOnlyForFieldUnits = determinationOnlyForFieldUnitsButton.getSelection();
178 185
             }
179 186
         });
......
184 191
            allowOverridesDeterminationOnlyForFieldUnitsButton.addSelectionListener(new SelectionAdapter(){
185 192
                @Override
186 193
                public void widgetSelected(SelectionEvent e) {
194
                    setApply(true);
187 195
                    allowOverrideDeterminationOnlyForFieldUnits = allowOverridesDeterminationOnlyForFieldUnitsButton.getSelection();
188 196
                }
189 197
            });
......
192 200
            allowOverridesDeterminationOnlyForFieldUnitsButton.addSelectionListener(new SelectionAdapter(){
193 201
                @Override
194 202
                public void widgetSelected(SelectionEvent e) {
203
                    setApply(true);
195 204
                    overrideDeterminationOnlyForFieldUnits = allowOverridesDeterminationOnlyForFieldUnitsButton.getSelection();
196 205
                }
197 206
            });
......
209 218
        showTaxonAssociationButton.addSelectionListener(new SelectionAdapter(){
210 219
             @Override
211 220
             public void widgetSelected(SelectionEvent e) {
221
                 setApply(true);
212 222
                 isShowTaxonAssociation = showTaxonAssociationButton.getSelection();
213 223

  
214 224
              }
......
219 229
            allowOverrideIsShowTaxonAssociationButton.addSelectionListener(new SelectionAdapter(){
220 230
                @Override
221 231
                public void widgetSelected(SelectionEvent e) {
232
                    setApply(true);
222 233
                    allowOverrideShowTaxonAssociation = allowOverrideIsShowTaxonAssociationButton.getSelection();
223 234
                }
224 235
            });
......
227 238
            allowOverrideIsShowTaxonAssociationButton.addSelectionListener(new SelectionAdapter(){
228 239
                @Override
229 240
                public void widgetSelected(SelectionEvent e) {
241
                    setApply(true);
230 242
                    overrideShowTaxonAssociation = allowOverrideIsShowTaxonAssociationButton.getSelection();
231 243
                }
232 244
            });
......
242 254
        showLifeFormButton.addSelectionListener(new SelectionAdapter(){
243 255
             @Override
244 256
             public void widgetSelected(SelectionEvent e) {
257
                 setApply(true);
245 258
                 isShowLifeForm = showLifeFormButton.getSelection();
246 259

  
247 260
              }
......
253 266
            allowOverrideShowLifeFormButton.addSelectionListener(new SelectionAdapter(){
254 267
                @Override
255 268
                public void widgetSelected(SelectionEvent e) {
269
                    setApply(true);
256 270
                    allowOverrideShowLifeForm = allowOverrideShowLifeFormButton.getSelection();
257 271
                }
258 272
            });
......
261 275
            allowOverrideShowLifeFormButton.addSelectionListener(new SelectionAdapter(){
262 276
                @Override
263 277
                public void widgetSelected(SelectionEvent e) {
278
                    setApply(true);
264 279
                    overrideShowLifeForm = allowOverrideShowLifeFormButton.getSelection();
265 280
                }
266 281
            });

Also available in: Unified diff