void () { if (myEnableFileNameFilterCb.isSelected()) { String mask = (String)myFileFilter.getEditor().getItem(); if (mask == null || !isMaskValid(mask)) { showWarningAndDisableOK(); return; } } if (myMaskWarningLabel.isVisible()) { clearWarningAndEnableOK(); } }