@Override
public SelectionArbitrator getSelectionArbitrator() {
- // TODO Auto-generated method stub
+ // actually this view is used in the specimen wizard, so there the selection arbitrator is not needed.
return null;
}
public void setBackground(Color color) {
for(ICdmFormElement element : getElements()){
- if (element != null && (element != combo_statusType ^ (element == combo_statusType && combo_statusType.getSelection() != null)) ) {
- element.setBackground(color);
- }else {
- element.setBackground(colorRedSWT);
+ if (element != null) {
+ if (element != combo_statusType ^ (element == combo_statusType && combo_statusType.getSelection() != null)){
+ element.setBackground(color);
+ }else {
+ element.setBackground(colorRedSWT);
+ }
}
}
for(Control element : getControls()){
- element.setBackground(color);
+ if (!element.isDisposed()){
+ element.setBackground(color);
+ }
}
}
}
\ No newline at end of file