final Check check = checkResourceFields(param, params);
application.invokeLater(new Runnable() {
@Override
public void run() {
final MyButton ab = getApplyButton();
final Resource r = getResource();
if (ab != null) {
if (r != null && r.isNew()) {
check.addChanged("new resource");
}
ab.setEnabled(check);
}
final MyButton rb = getRevertButton();