@Override protected void doOKAction() { if (hasPatch()) { super.doOKAction(); return; } if (myLatestBuild.getButtons().size() > 0) { BrowserUtil.launchBrowser(myLatestBuild.getButtons().get(0).getUrl()); } else { openDownloadPage(); } super.doOKAction(); }
@Override protected boolean doDownloadAndPrepare() { if (hasPatch()) { switch (UpdateChecker.downloadAndInstallPatch(myLatestBuild)) { case CANCELED: return false; case FAILED: openDownloadPage(); return false; case SUCCESS: super.doDownloadAndPrepare(); return true; } } return super.doDownloadAndPrepare(); }
@Override protected void doOKAction() { BrowserUtil.browse(myChannel.getHomePageUrl()); super.doOKAction(); }