void () { myTargetUrl = buildTargetUrl(); myTargetURLLabel.setText(myTargetUrl != null ? myTargetUrl.toDecodedString() : ""); getOKAction().setEnabled(myTargetUrl != null && !myURL.equals(myTargetUrl)); }