void (boolean isEditEnabled, ColorAndFontDescription description) { myCbBackground.setEnabled(isEditEnabled && description.isBackgroundEnabled()); myCbForeground.setEnabled(isEditEnabled && description.isForegroundEnabled()); myCbBold.setEnabled(isEditEnabled && description.isFontEnabled()); myCbItalic.setEnabled(isEditEnabled && description.isFontEnabled()); myCbEffects.setEnabled(isEditEnabled && description.isEffectsColorEnabled()); myCbErrorStripe.setEnabled(isEditEnabled && description.isErrorStripeEnabled()); myErrorStripeColorChooser.setEditable(isEditEnabled); myEffectsColorChooser.setEditable(isEditEnabled); myForegroundChooser.setEditable(isEditEnabled); myBackgroundChooser.setEditable(isEditEnabled); }