protected UpdateInfoDialog(
     final boolean canBeParent,
     UpdateChannel channel,
     final List<Couple<IdeaPluginDescriptor>> uploadedPlugins,
     final boolean enableLink) {
   super(canBeParent, enableLink, uploadedPlugins);
   myUpdatedChannel = channel;
   myLatestBuild = channel.getLatestBuild();
   setTitle(IdeBundle.message("updates.info.dialog.title"));
   getCancelAction().putValue(DEFAULT_ACTION, Boolean.TRUE);
   init();
 }
  public NewChannelDialog(@NotNull UpdateChannel channel) {
    super(false);
    myChannel = channel;
    myLatestBuild = channel.getLatestBuild();
    assert myLatestBuild != null;

    LicensingFacade facade = LicensingFacade.getInstance();
    if (facade != null) {
      if (!myChannel.getLicensing().equals(UpdateChannel.LICENSING_EAP)) {
        Boolean paidUpgrade =
            facade.isPaidUpgrade(myChannel.getMajorVersion(), myLatestBuild.getReleaseDate());
        if (paidUpgrade == Boolean.TRUE) {
          myShowUpgradeButton = true;
          myLicenseInfo = IdeBundle.message("updates.channel.key.needed", myChannel.getEvalDays());
        } else if (paidUpgrade == Boolean.FALSE) {
          myLicenseInfo = IdeBundle.message("updates.channel.existing.key");
        }
      } else {
        myLicenseInfo = IdeBundle.message("updates.channel.bundled.key");
      }
    }

    init();
  }
 private void openDownloadPage() {
   BrowserUtil.launchBrowser(myUpdatedChannel.getHomePageUrl());
 }
 @Override
 protected void doOKAction() {
   BrowserUtil.browse(myChannel.getHomePageUrl());
   super.doOKAction();
 }