Revision a9e51662
Added by Katja Luther almost 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/GenericConfiguratorWizardPage.java | ||
---|---|---|
185 | 185 |
final String methodName = method.getName(); |
186 | 186 |
final Button checkBox = new Button(parent, SWT.CHECK); |
187 | 187 |
|
188 |
if(configurator.getClass().equals(Abcd206ImportConfigurator.class)){ |
|
188 |
// if(configurator.getClass().equals(Abcd206ImportConfigurator.class)){
|
|
189 | 189 |
String[] r = methodName.split("set")[1].split("(?=\\p{Upper})"); |
190 | 190 |
checkBox.setText(getLabel(StringUtils.join(r," "))); |
191 |
} |
|
192 |
else{ |
|
193 |
checkBox.setText(getLabel(methodName)); |
|
194 |
} |
|
191 |
// }
|
|
192 |
// else{
|
|
193 |
// checkBox.setText(getLabel(methodName));
|
|
194 |
// }
|
|
195 | 195 |
// retrieve the default values and set the checkbox accordingly |
196 | 196 |
boolean defaultSelection = executeBooleanGetMethod(configurator, "is" |
197 | 197 |
+ methodName.substring(3)); |
Also available in: Unified diff
avoid NPE in check for dirty editors